From b5dc1c7d27cabc9ba99453e5422795b90cb9bcae Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 1 Dec 2018 16:27:32 +0100 Subject: [PATCH] remove some local variables related to nav bar checking --- .../gallery/pro/fragments/VideoFragment.kt | 8 +------- 1 file changed, 1 insertion(+), 7 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 e918f5771..5d28ff477 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 @@ -380,16 +380,10 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S val realDisplayMetrics = DisplayMetrics() display.getRealMetrics(realDisplayMetrics) - val realHeight = realDisplayMetrics.heightPixels - val realWidth = realDisplayMetrics.widthPixels - val displayMetrics = DisplayMetrics() display.getMetrics(displayMetrics) - val displayHeight = displayMetrics.heightPixels - val displayWidth = displayMetrics.widthPixels - - return realWidth - displayWidth > 0 || realHeight - displayHeight > 0 + return (realDisplayMetrics.widthPixels - displayMetrics.widthPixels > 0) || (realDisplayMetrics.heightPixels - displayMetrics.heightPixels > 0) } private fun setupTimeHolder() {