remove some local variables related to nav bar checking
This commit is contained in:
parent
99d7d2ad43
commit
b5dc1c7d27
1 changed files with 1 additions and 7 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue