From 7abdd059eb82b5c248685bccd22ea5c193555a41 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Feb 2020 20:34:23 +0100 Subject: [PATCH] reduce the instant changer width --- .../gallery/pro/fragments/VideoFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index 8a1de7ec2..e0ad02923 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -120,11 +120,11 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S } val viewWidth = width - val twentyPercent = viewWidth / 5 + val instantWidth = viewWidth / 7 val clickedX = e?.rawX ?: 0f when { - clickedX <= twentyPercent -> listener?.goToPrevItem() - clickedX >= viewWidth - twentyPercent -> listener?.goToNextItem() + clickedX <= instantWidth -> listener?.goToPrevItem() + clickedX >= viewWidth - instantWidth -> listener?.goToNextItem() else -> toggleFullscreen() } return true