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 17e150cc7..1ead87000 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -62,7 +62,7 @@ class PhotoFragment : ViewPagerFragment() { return false } - override fun onResourceReady(resource: Bitmap?, model: String?, target: Target?, isFromMemoryCache: Boolean, isFirstResource: Boolean): Boolean { + override fun onResourceReady(bitmap: Bitmap?, model: String?, target: Target?, isFromMemoryCache: Boolean, isFirstResource: Boolean): Boolean { addZoomableView() return false } @@ -72,8 +72,8 @@ class PhotoFragment : ViewPagerFragment() { private fun addZoomableView() { if (!medium.isPng()) { - subsamplingView.visibility = View.VISIBLE subsamplingView.apply { + visibility = View.VISIBLE setDoubleTapZoomScale(1.2f) setImage(ImageSource.uri(medium.path)) orientation = SubsamplingScaleImageView.ORIENTATION_USE_EXIF