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