fix "show notifications filter" preference opening tabs preferences (#2193)

This commit is contained in:
Konrad Pozniak 2021-06-11 20:50:52 +02:00 committed by GitHub
parent 6281e37aec
commit 86002efc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -151,14 +151,6 @@ class PreferencesFragment : PreferenceFragmentCompat(), Injectable {
key = PrefKeys.SHOW_NOTIFICATIONS_FILTER key = PrefKeys.SHOW_NOTIFICATIONS_FILTER
setTitle(R.string.pref_title_show_notifications_filter) setTitle(R.string.pref_title_show_notifications_filter)
isSingleLineTitle = false isSingleLineTitle = false
setOnPreferenceClickListener {
activity?.let { activity ->
val intent = PreferencesActivity.newIntent(activity, PreferencesActivity.TAB_FILTER_PREFERENCES)
activity.startActivity(intent)
activity.overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left)
}
true
}
} }
switchPreference { switchPreference {