Cleanup hide updates/history button settings

This commit is contained in:
arkon
2021-05-15 15:03:09 -04:00
parent 7fb4cbb8a0
commit 8e7c235ff0
5 changed files with 12 additions and 18 deletions

View File

@@ -15,9 +15,8 @@ object PreferenceKeys {
const val hideBottomBar = "pref_hide_bottom_bar_on_scroll"
const val hideUpdatesButton = "pref_hide_updates_button"
const val hideHistoryButton = "pref_hide_history_button"
const val showNavUpdates = "pref_nav_show_updates"
const val showNavHistory = "pref_nav_show_history"
const val enableTransitions = "pref_enable_transitions_key"

View File

@@ -65,9 +65,8 @@ class PreferencesHelper(val context: Context) {
fun hideBottomBar() = flowPrefs.getBoolean(Keys.hideBottomBar, true)
fun hideUpdatesButton() = flowPrefs.getBoolean(Keys.hideUpdatesButton, true)
fun hideHistoryButton() = flowPrefs.getBoolean(Keys.hideHistoryButton, true)
fun showNavUpdates() = prefs.getBoolean(Keys.showNavUpdates, true)
fun showNavHistory() = prefs.getBoolean(Keys.showNavHistory, true)
fun useBiometricLock() = flowPrefs.getBoolean(Keys.useBiometricLock, false)