mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
shortening some code
This commit is contained in:
parent
641df80b21
commit
f1e5be6f60
@ -243,12 +243,10 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||
activity!!.updateTextColors(mView.video_holder)
|
||||
val allowVideoGestures = mConfig.allowVideoGestures
|
||||
mTextureView.beGoneIf(mConfig.openVideosOnSeparateScreen || mIsPanorama)
|
||||
mView.apply {
|
||||
video_surface_frame.beGoneIf(mTextureView.isGone())
|
||||
mView.video_surface_frame.beGoneIf(mTextureView.isGone())
|
||||
|
||||
video_volume_controller.beVisibleIf(allowVideoGestures && !mIsPanorama)
|
||||
video_brightness_controller.beVisibleIf(allowVideoGestures && !mIsPanorama)
|
||||
}
|
||||
mVolumeSideScroll.beVisibleIf(allowVideoGestures && !mIsPanorama)
|
||||
mBrightnessSideScroll.beVisibleIf(allowVideoGestures && !mIsPanorama)
|
||||
|
||||
checkExtendedDetails()
|
||||
initTimeHolder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user