mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
add an extra activity existing check at trying to reload bitmap
This commit is contained in:
parent
5468baf513
commit
f8a4e68a1f
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
if (!useHalfResolution && e?.rootCauses?.firstOrNull() is OutOfMemoryError) {
|
||||
useHalfResolution = true
|
||||
Handler().post {
|
||||
loadBitmap(degrees)
|
||||
if (activity?.isActivityDestroyed() == false) {
|
||||
loadBitmap(degrees)
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue