mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch OutOfMemory errors at GifDrawables
This commit is contained in:
@@ -178,6 +178,9 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
} catch (e: Exception) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
} catch (e: OutOfMemoryError) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user