Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Knop <[email protected]>
  • Loading branch information
Alex Knop committed Feb 10, 2025
1 parent 1ff1a8a commit 4618e65
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import com.owncloud.android.ui.fragment.FileFragment
import com.owncloud.android.ui.preview.PreviewMediaFragment.Companion.newInstance
import com.owncloud.android.utils.BitmapUtils
import com.owncloud.android.utils.DisplayUtils
import com.owncloud.android.utils.MimeType
import com.owncloud.android.utils.MimeTypeUtil
import com.owncloud.android.utils.theme.ViewThemeUtils
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
Expand Down Expand Up @@ -529,7 +528,7 @@ class PreviewImageFragment : FileFragment(), Injectable {
}

try {
bitmapResult = BitmapUtils.retrieveBitmapFromFile(storagePath, minWidth, minHeight);
bitmapResult = BitmapUtils.retrieveBitmapFromFile(storagePath, minWidth, minHeight)

if (isCancelled) {
return LoadImage(bitmapResult, null, ocFile)
Expand All @@ -540,7 +539,6 @@ class PreviewImageFragment : FileFragment(), Injectable {
Log_OC.e(TAG, "File could not be loaded as a bitmap: $storagePath")
break
}

} catch (e: OutOfMemoryError) {
mErrorMessageId = R.string.common_error_out_memory
if (i < maxDownScale - 1) {
Expand Down

0 comments on commit 4618e65

Please sign in to comment.