From eb1ef6852e8215546a1222227e041e37ba0c2331 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Feb 2017 20:16:33 +0100 Subject: [PATCH] rename some photo fragment views --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 4 ++-- app/src/main/res/layout/pager_photo_item.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 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 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">