tweak the glide view clearing a bit

This commit is contained in:
tibbi 2019-05-14 00:03:30 +02:00
parent 36dec5e004
commit fa0ce89d81

View file

@ -227,13 +227,13 @@ class PhotoFragment : ViewPagerFragment() {
super.onDestroyView()
if (activity?.isDestroyed == false) {
mView.subsampling_view.recycle()
}
try {
if (context != null) {
Glide.with(context!!).clear(mView.gestures_view)
try {
if (context != null) {
Glide.with(context!!).clear(mView.gestures_view)
}
} catch (ignored: Exception) {
}
} catch (ignored: Exception) {
}
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)