bring back the notification filter preference (#4225)

It was probably forgotten when we restored the old notifications
behavior.
closes #4222
This commit is contained in:
Konrad Pozniak 2024-01-28 19:07:29 +01:00 committed by GitHub
commit 0b9f61c100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View file

@ -212,6 +212,13 @@ class PreferencesFragment : PreferenceFragmentCompat(), Injectable {
isSingleLineTitle = false
}
switchPreference {
setDefaultValue(true)
key = PrefKeys.SHOW_NOTIFICATIONS_FILTER
setTitle(R.string.pref_title_show_notifications_filter)
isSingleLineTitle = false
}
switchPreference {
setDefaultValue(true)
key = PrefKeys.CONFIRM_REBLOGS

View file

@ -68,6 +68,7 @@ object PrefKeys {
const val USE_BLURHASH = "useBlurhash"
const val SHOW_SELF_USERNAME = "showSelfUsername"
const val SHOW_CARDS_IN_TIMELINES = "showCardsInTimelines"
const val SHOW_NOTIFICATIONS_FILTER = "showNotificationsFilter"
const val CONFIRM_REBLOGS = "confirmReblogs"
const val CONFIRM_FAVOURITES = "confirmFavourites"
const val ENABLE_SWIPE_FOR_TABS = "enableSwipeForTabs"