remove some local variables related to nav bar checking

This commit is contained in:
tibbi 2018-12-01 16:27:32 +01:00
parent 99d7d2ad43
commit b5dc1c7d27

View file

@ -380,16 +380,10 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
val realDisplayMetrics = DisplayMetrics() val realDisplayMetrics = DisplayMetrics()
display.getRealMetrics(realDisplayMetrics) display.getRealMetrics(realDisplayMetrics)
val realHeight = realDisplayMetrics.heightPixels
val realWidth = realDisplayMetrics.widthPixels
val displayMetrics = DisplayMetrics() val displayMetrics = DisplayMetrics()
display.getMetrics(displayMetrics) display.getMetrics(displayMetrics)
val displayHeight = displayMetrics.heightPixels return (realDisplayMetrics.widthPixels - displayMetrics.widthPixels > 0) || (realDisplayMetrics.heightPixels - displayMetrics.heightPixels > 0)
val displayWidth = displayMetrics.widthPixels
return realWidth - displayWidth > 0 || realHeight - displayHeight > 0
} }
private fun setupTimeHolder() { private fun setupTimeHolder() {