From fa0ce89d814f699671892048d06386723f9977eb Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 14 May 2019 00:03:30 +0200 Subject: [PATCH] tweak the glide view clearing a bit --- .../gallery/pro/fragments/PhotoFragment.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index 25dd5a899..1160f5761 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -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)