From 67c3339d7daba6a5d1f6a5eca768eb01f976f022 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 2 Jan 2019 17:53:49 +0100 Subject: [PATCH] implementing the video brightness and volume controllers --- .../gallery/pro/activities/VideoPlayerActivity.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt index 584b962b8..c7b1da6e7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/VideoPlayerActivity.kt @@ -135,6 +135,19 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen video_surface.setOnClickListener { fullscreenToggled(!mIsFullscreen) } + + if (config.allowVideoGestures) { + video_brightness_controller.initialize(this, slide_info, true, video_player_holder) { x, y -> + video_player_holder.performClick() + } + + video_volume_controller.initialize(this, slide_info, false, video_player_holder) { x, y -> + video_player_holder.performClick() + } + } else { + video_brightness_controller.beGone() + video_volume_controller.beGone() + } } private fun initExoPlayer() {