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
@@ -45,11 +45,7 @@ class SettingsGeneralController : SettingsController() {
titleRes = R.string.pref_confirm_exit
defaultValue = false
}
switchPreference {
key = Keys.hideBottomBar
titleRes = R.string.pref_hide_bottom_bar_on_scroll
defaultValue = true
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
preference {
key = "pref_manage_notifications"
@@ -265,5 +261,25 @@ class SettingsGeneralController : SettingsController() {
summary = "%s"
}
}
preferenceCategory {
titleRes = R.string.pref_category_navigation
switchPreference {
key = Keys.hideBottomBar
titleRes = R.string.pref_hide_bottom_bar_on_scroll
defaultValue = true
}
switchPreference {
key = Keys.hideUpdatesButton
titleRes = R.string.pref_hide_updates_button
defaultValue = false
}
switchPreference {
key = Keys.hideHistoryButton
titleRes = R.string.pref_hide_history_button
defaultValue = false
}
}
}
}