mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	allow disabling fullscreen volume and brightness video gestures
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -310,6 +310,30 @@
 | 
			
		||||
 | 
			
		||||
        </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
 | 
			
		||||
            android:id="@+id/thumbnails_label"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user