For #15764 - Update Tabs summary description. (#16428)

upstream-sync
Mihai Adrian Carare 4 years ago committed by GitHub
parent 96e2123f86
commit c641ed72dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -362,16 +362,16 @@ class Settings(private val appContext: Context) : PreferencesHolder {
fun getTabTimeoutString(): String = when {
closeTabsAfterOneDay -> {
appContext.getString(R.string.close_tabs_after_one_day)
appContext.getString(R.string.close_tabs_after_one_day_summary)
}
closeTabsAfterOneWeek -> {
appContext.getString(R.string.close_tabs_after_one_week)
appContext.getString(R.string.close_tabs_after_one_week_summary)
}
closeTabsAfterOneMonth -> {
appContext.getString(R.string.close_tabs_after_one_month)
appContext.getString(R.string.close_tabs_after_one_month_summary)
}
else -> {
appContext.getString(R.string.close_tabs_manually)
appContext.getString(R.string.close_tabs_manually_summary)
}
}

@ -544,6 +544,15 @@
<!-- Option for auto closing tabs that will auto close tabs after one month -->
<string name="close_tabs_after_one_month">After one month</string>
<!-- Summary for tabs preference when auto closing tabs setting is set to manual close-->
<string name="close_tabs_manually_summary">Close manually</string>
<!-- Summary for tabs preference when auto closing tabs setting is set to auto close tabs after one day-->
<string name="close_tabs_after_one_day_summary">Close after one day</string>
<!-- Summary for tabs preference when auto closing tabs setting is set to auto close tabs after one week-->
<string name="close_tabs_after_one_week_summary">Close after one week</string>
<!-- Summary for tabs preference when auto closing tabs setting is set to auto close tabs after one month-->
<string name="close_tabs_after_one_month_summary">Close after one month</string>
<!-- Sessions -->
<!-- Title for the list of tabs -->
<string name="tab_header_label">Open tabs</string>

Loading…
Cancel
Save