From d65045220d507a77c5ac6d22fe76fcfd18a1a0d0 Mon Sep 17 00:00:00 2001
From: tibbi <tibor@kaputa.sk>
Date: Mon, 18 Jun 2018 09:10:08 +0200
Subject: [PATCH] set bottom actions padding at devices without a navigation
 bar too

---
 .../gallery/fragments/VideoFragment.kt                | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 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 fee105945..af7024ff4 100644
--- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt
@@ -208,13 +208,14 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
                 right += context!!.navigationBarWidth
                 bottom += context!!.navigationBarHeight
             }
-
-            if (context!!.config.bottomActions) {
-                bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
-            }
-            mTimeHolder!!.setPadding(left, top, right, bottom)
         }
 
+        if (context!!.config.bottomActions) {
+            bottom += resources.getDimension(R.dimen.bottom_actions_height).toInt()
+        }
+
+        mTimeHolder!!.setPadding(left, top, right, bottom)
+
         mCurrTimeView = mView!!.video_curr_time
         mSeekBar = mView!!.video_seekbar
         mSeekBar!!.setOnSeekBarChangeListener(this)