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 7c3238639..f8a36a11b 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 @@ -324,7 +324,7 @@ class PhotoFragment : ViewPagerFragment() { } override fun onError(e: Exception) { - if (context != null) { + if (activity != null) { tryLoadingWithGlide() } }