catch OutOfMemory errors at GifDrawables
This commit is contained in:
parent
1c7c95d579
commit
1b88318f46
|
@ -178,6 +178,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
} catch (e: Exception) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
} catch (e: OutOfMemoryError) {
|
||||
gifDrawable = null
|
||||
loadBitmap()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue