1
0
Fork 0

For #5873 Added on/off indicator for delete browsing data on exit pref

master
mcarare 2019-10-09 11:55:37 +03:00
parent 55e6e00355
commit 788e52be0c
2 changed files with 14 additions and 0 deletions

View File

@ -129,6 +129,16 @@ class SettingsFragment : PreferenceFragmentCompat(), AccountObserver {
val appName = getString(R.string.app_name)
aboutPreference?.title = getString(R.string.preferences_about, appName)
val deleteBrowsingDataPreference =
findPreference<Preference>(getPreferenceKey(R.string.pref_key_delete_browsing_data_on_quit_preference))
deleteBrowsingDataPreference?.summary = context?.let {
if (it.settings().shouldDeleteBrowsingDataOnQuit) {
getString(R.string.delete_browsing_data_quit_on)
} else {
getString(R.string.delete_browsing_data_quit_off)
}
}
setupPreferences()
updateAccountUIState(context!!, requireComponents.backgroundServices.accountManager.accountProfile())

View File

@ -539,6 +539,10 @@
<string name="preference_option_autoplay_blocked">Video and audio blocked</string>
<!-- Label that indicates video and audio autoplay is allowed -->
<string name="preference_option_autoplay_allowed">Video and audio allowed</string>
<!-- Summary of delete browsing data on quit preference if it is set to on -->
<string name="delete_browsing_data_quit_on">On</string>
<!-- Summary of delete browsing data on quit preference if it is set to off -->
<string name="delete_browsing_data_quit_off">Off</string>
<!-- Collections -->
<!-- Label to describe what collections are to a new user without any collections -->