From d353f02a517abd8a2e2bdcaee530e6da1c53a2be Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 29 Dec 2017 15:46:15 +0100 Subject: [PATCH] recycle the subsampling imageview on destroy --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 747742a59..01d71d9d0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -324,6 +324,7 @@ class PhotoFragment : ViewPagerFragment() { super.onDestroyView() if (activity?.isActivityDestroyed() == false) { Glide.with(context).clear(view.gif_view) + view.subsampling_view.recycle() } }