mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
catch OutOfMemory errors at GifDrawables
This commit is contained in:
parent
1c7c95d579
commit
1b88318f46
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
} catch (e: Exception) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
} catch (e: OutOfMemoryError) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue