catch OutOfMemory errors at GifDrawables

This commit is contained in:
tibbi 2017-11-23 09:44:26 +01:00
parent 1c7c95d579
commit 1b88318f46
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,9 @@ class PhotoFragment : ViewPagerFragment() {
} catch (e: Exception) {
gifDrawable = null
loadBitmap()
} catch (e: OutOfMemoryError) {
gifDrawable = null
loadBitmap()
}
}