From 1e3296fce12d2ff9e95f29bfc10b38136a16d292 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 2 Mar 2018 17:31:18 +0100 Subject: [PATCH] fix #674, properly handle video progressbar padding on device rotations --- .../simplemobiletools/gallery/fragments/VideoFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index ce03f165b..f704912b6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -185,9 +185,9 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee private fun initTimeHolder() { val res = resources - val left = mTimeHolder!!.paddingLeft - val top = mTimeHolder!!.paddingTop - var right = mTimeHolder!!.paddingRight + val left = 0 + val top = 0 + var right = 0 var bottom = 0 if (hasNavBar()) {