From ccf71496e2a824688d1b53a3ffda6ffc6c7935de Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 6 Jan 2017 16:56:37 +0100 Subject: [PATCH] small photofragment update --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 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