From f1e5be6f600f1cd7e80f0f1bfb6c10f1f829147a Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Feb 2020 22:55:03 +0100 Subject: [PATCH] shortening some code --- .../gallery/pro/fragments/VideoFragment.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 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 39a67edb8..c89e3cf0b 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 @@ -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()