From 9247b5119478f0bafdac48251b27f31cb8a85954 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 16 Sep 2017 20:37:18 +0200 Subject: [PATCH] lets not toast errors if loading fullscreen media fails --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 3 --- 1 file changed, 3 deletions(-) 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 d7aca9dbf..c24c09f96 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -26,10 +26,8 @@ import com.davemorrissey.labs.subscaleview.ImageSource import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView import com.simplemobiletools.commons.extensions.beGone import com.simplemobiletools.commons.extensions.beVisible -import com.simplemobiletools.commons.extensions.showErrorToast import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.gallery.R -import com.simplemobiletools.gallery.activities.SimpleActivity import com.simplemobiletools.gallery.activities.ViewPagerActivity import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.extensions.getFileSignature @@ -225,7 +223,6 @@ class PhotoFragment : ViewPagerFragment() { override fun onImageLoadError(e: Exception) { background = ColorDrawable(Color.TRANSPARENT) beGone() - (activity as SimpleActivity).showErrorToast(e) } override fun onPreviewLoadError(e: Exception?) {