mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Hide invert volume keys setting when volume keys isn't enabled
This commit is contained in:
		@@ -228,7 +228,9 @@ class SettingsReaderController : SettingsController() {
 | 
			
		||||
                key = Keys.readWithVolumeKeysInverted
 | 
			
		||||
                titleRes = R.string.pref_read_with_volume_keys_inverted
 | 
			
		||||
                defaultValue = false
 | 
			
		||||
            }.apply { dependency = Keys.readWithVolumeKeys }
 | 
			
		||||
 | 
			
		||||
                preferences.readWithVolumeKeys().asImmediateFlow { isVisible = it }.launchIn(scope)
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user