mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
tweak the glide view clearing a bit
This commit is contained in:
parent
36dec5e004
commit
fa0ce89d81
1 changed files with 5 additions and 5 deletions
|
@ -227,13 +227,13 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
super.onDestroyView()
|
super.onDestroyView()
|
||||||
if (activity?.isDestroyed == false) {
|
if (activity?.isDestroyed == false) {
|
||||||
mView.subsampling_view.recycle()
|
mView.subsampling_view.recycle()
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (context != null) {
|
if (context != null) {
|
||||||
Glide.with(context!!).clear(mView.gestures_view)
|
Glide.with(context!!).clear(mView.gestures_view)
|
||||||
|
}
|
||||||
|
} catch (ignored: Exception) {
|
||||||
}
|
}
|
||||||
} catch (ignored: Exception) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||||
|
|
Loading…
Reference in a new issue