mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
allow disabling fullscreen volume and brightness video gestures
This commit is contained in:
parent
d46ada2c0a
commit
a233600d28
2 changed files with 33 additions and 0 deletions
|
@ -62,6 +62,7 @@ class SettingsActivity : SimpleActivity() {
|
||||||
setupFileDeletionPasswordProtection()
|
setupFileDeletionPasswordProtection()
|
||||||
setupDeleteEmptyFolders()
|
setupDeleteEmptyFolders()
|
||||||
setupAllowPhotoGestures()
|
setupAllowPhotoGestures()
|
||||||
|
setupAllowVideoGestures()
|
||||||
setupAllowDownGesture()
|
setupAllowDownGesture()
|
||||||
setupAllowRotatingWithGestures()
|
setupAllowRotatingWithGestures()
|
||||||
setupShowNotch()
|
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() {
|
private fun setupAllowDownGesture() {
|
||||||
settings_allow_down_gesture.isChecked = config.allowDownGesture
|
settings_allow_down_gesture.isChecked = config.allowDownGesture
|
||||||
settings_allow_down_gesture_holder.setOnClickListener {
|
settings_allow_down_gesture_holder.setOnClickListener {
|
||||||
|
|
|
@ -310,6 +310,30 @@
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/settings_allow_video_gestures_holder"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/medium_margin"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:paddingLeft="@dimen/normal_margin"
|
||||||
|
android:paddingTop="@dimen/activity_margin"
|
||||||
|
android:paddingRight="@dimen/normal_margin"
|
||||||
|
android:paddingBottom="@dimen/activity_margin">
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MySwitchCompat
|
||||||
|
android:id="@+id/settings_allow_video_gestures"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@null"
|
||||||
|
android:clickable="false"
|
||||||
|
android:paddingStart="@dimen/medium_margin"
|
||||||
|
android:paddingLeft="@dimen/medium_margin"
|
||||||
|
android:text="@string/allow_video_gestures"
|
||||||
|
app:switchPadding="@dimen/medium_margin" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextView
|
<com.simplemobiletools.commons.views.MyTextView
|
||||||
android:id="@+id/thumbnails_label"
|
android:id="@+id/thumbnails_label"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
Loading…
Reference in a new issue