From fe9d34295a93d224ca6f0f0c8d3eaaf81bedbaad Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 4 Jan 2019 22:05:37 +0100 Subject: [PATCH] make video fast-forwarding with horizontal gestures easier in landscape mode --- .../gallery/pro/activities/VideoPlayerActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index 00fcdfedf..272ac8ab1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -377,7 +377,8 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen video_surface.layoutParams = this } - mScreenWidth = (screenWidth * 0.8).toInt() + val multiplier = if (screenWidth > screenHeight) 0.5 else 0.8 + mScreenWidth = (screenWidth * multiplier).toInt() } private fun changeOrientation() {