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 527d41318..79e22a164 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -74,8 +74,8 @@ class PhotoFragment : ViewPagerFragment() { } } - subsamplingView = view.photo_view.apply { setOnClickListener({ photoClicked() }) } - glideView = view.glide_view.apply { + subsamplingView = view.subsampling_view.apply { setOnClickListener({ photoClicked() }) } + glideView = view.photo_view.apply { setOnPhotoTapListener(object : PhotoViewAttacher.OnPhotoTapListener { override fun onPhotoTap(view: View?, x: Float, y: Float) { photoClicked() diff --git a/app/src/main/res/layout/pager_photo_item.xml b/app/src/main/res/layout/pager_photo_item.xml index 39ef5f905..7d7cf1e82 100644 --- a/app/src/main/res/layout/pager_photo_item.xml +++ b/app/src/main/res/layout/pager_photo_item.xml @@ -6,12 +6,12 @@ android:layout_height="match_parent">