From ed0aa0b29903457813cea0b27e6c5a9e880c4a04 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 8 Jan 2019 13:45:47 +0100 Subject: [PATCH] adding a possible crashfix at photo fragment --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }