Add option to hide "Updates" and "History" buttons (#5077)

* Add otion to hide "Updates" abd "History" buttons

* Add otion to hide "Updates" abd "History" buttons

* explicit imports

* New category Navigation

* Add functionality for SideNav
This commit is contained in:
simakover
2021-05-16 00:01:05 +05:00
committed by GitHub
parent fa872f6cf7
commit 7fb4cbb8a0
5 changed files with 42 additions and 6 deletions

View File

@@ -15,6 +15,10 @@ 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 enableTransitions = "pref_enable_transitions_key"
const val doubleTapAnimationSpeed = "pref_double_tap_anim_speed"

View File

@@ -65,6 +65,10 @@ 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 useBiometricLock() = flowPrefs.getBoolean(Keys.useBiometricLock, false)
fun lockAppAfter() = flowPrefs.getInt(Keys.lockAppAfter, 0)