lets not toast errors if loading fullscreen media fails

This commit is contained in:
tibbi 2017-09-16 20:37:18 +02:00
parent f7e7d83382
commit 9247b51194

View file

@ -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?) {