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 20037228e..4bb52fdb1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -156,8 +156,9 @@ class PhotoFragment : ViewPagerFragment() { private fun loadImage() { if (medium.isGif()) { gifDrawable = GifDrawable(medium.path) - if (!isFragmentVisible) + if (!isFragmentVisible) { gifDrawable!!.stop() + } view.gif_view.setImageDrawable(gifDrawable) } else { diff --git a/app/src/main/res/layout/pager_photo_item.xml b/app/src/main/res/layout/pager_photo_item.xml index 5f170ca80..152c24684 100644 --- a/app/src/main/res/layout/pager_photo_item.xml +++ b/app/src/main/res/layout/pager_photo_item.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> -