mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08: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,9 +258,11 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
if (!useHalfResolution && e?.rootCauses?.firstOrNull() is OutOfMemoryError) {
|
if (!useHalfResolution && e?.rootCauses?.firstOrNull() is OutOfMemoryError) {
|
||||||
useHalfResolution = true
|
useHalfResolution = true
|
||||||
Handler().post {
|
Handler().post {
|
||||||
|
if (activity?.isActivityDestroyed() == false) {
|
||||||
loadBitmap(degrees)
|
loadBitmap(degrees)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue