From e4ac69004d3fc53a2a8a3dabe00973b7bfa88435 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 6 Feb 2019 18:00:33 +0100 Subject: [PATCH] updating subsampling scale image view --- app/build.gradle | 2 +- .../gallery/pro/fragments/PhotoFragment.kt | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 780ecf626..d42e9fe64 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -75,7 +75,7 @@ dependencies { implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.caverock:androidsvg-aar:1.3' implementation 'com.github.tibbi:gestureviews:985ba285fb' - implementation 'com.github.tibbi:subsampling-scale-image-view:03df52339d' + implementation 'com.github.tibbi:subsampling-scale-image-view:224582bc99' kapt 'com.github.bumptech.glide:compiler:4.8.0' // keep it here too, not just in Commons, else loading SVGs wont work kapt 'androidx.room:room-compiler:2.0.0' 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 66ae242f6..6bea26c56 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 @@ -462,9 +462,6 @@ class PhotoFragment : ViewPagerFragment() { orientation = rotation setImage(path) onImageEventListener = object : SubsamplingScaleImageView.OnImageEventListener { - override fun onImageLoaded() { - } - override fun onReady() { background = ColorDrawable(if (config.blackBackground) Color.BLACK else config.backgroundColor) val useWidth = if (mImageOrientation == ORIENTATION_ROTATE_90 || mImageOrientation == ORIENTATION_ROTATE_270) sHeight else sWidth @@ -473,9 +470,6 @@ class PhotoFragment : ViewPagerFragment() { mOriginalSubsamplingScale = scale } - override fun onTileLoadError(e: Exception) { - } - override fun onImageLoadError(e: Exception) { mView.gestures_view.controller.settings.isZoomEnabled = true background = ColorDrawable(Color.TRANSPARENT)