mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Add confirm exist setting (closes #2615)
This commit is contained in:
		| @@ -11,6 +11,8 @@ object PreferenceKeys { | ||||
|  | ||||
|     const val themeDark = "pref_theme_dark_key" | ||||
|  | ||||
|     const val confirmExit = "pref_confirm_exit" | ||||
|  | ||||
|     const val rotation = "pref_rotation_type_key" | ||||
|  | ||||
|     const val enableTransitions = "pref_enable_transitions_key" | ||||
|   | ||||
| @@ -54,6 +54,8 @@ class PreferencesHelper(val context: Context) { | ||||
|  | ||||
|     fun startScreen() = prefs.getInt(Keys.startScreen, 1) | ||||
|  | ||||
|     fun confirmExit() = prefs.getBoolean(Keys.confirmExit, false) | ||||
|  | ||||
|     fun useBiometricLock() = flowPrefs.getBoolean(Keys.useBiometricLock, false) | ||||
|  | ||||
|     fun lockAppAfter() = flowPrefs.getInt(Keys.lockAppAfter, 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user