From a233600d288d24054b918605b8c265b0ca034dfa Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 4 Jul 2021 22:03:17 +0200 Subject: [PATCH] allow disabling fullscreen volume and brightness video gestures --- .../pro/activities/SettingsActivity.kt | 9 +++++++ app/src/main/res/layout/activity_settings.xml | 24 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index 6bc52d698..50cf0ba64 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -62,6 +62,7 @@ class SettingsActivity : SimpleActivity() { setupFileDeletionPasswordProtection() setupDeleteEmptyFolders() setupAllowPhotoGestures() + setupAllowVideoGestures() setupAllowDownGesture() setupAllowRotatingWithGestures() setupShowNotch() @@ -354,6 +355,14 @@ class SettingsActivity : SimpleActivity() { } } + private fun setupAllowVideoGestures() { + settings_allow_video_gestures.isChecked = config.allowVideoGestures + settings_allow_video_gestures_holder.setOnClickListener { + settings_allow_video_gestures.toggle() + config.allowVideoGestures = settings_allow_video_gestures.isChecked + } + } + private fun setupAllowDownGesture() { settings_allow_down_gesture.isChecked = config.allowDownGesture settings_allow_down_gesture_holder.setOnClickListener { diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 8a05df610..48397539c 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -310,6 +310,30 @@ + + + + + +