Skip to content

Commit

Permalink
Move update settings strings to :features:settings
Browse files Browse the repository at this point in the history
* Update references
  • Loading branch information
EdricChan03 committed Dec 21, 2024
1 parent 33766a6 commit 081839b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class SettingsFragment : PreferenceHeaderFragmentCompat() {
private fun updateHeaderSummaries(showHeaderSummaries: Boolean) {
if (showHeaderSummaries) {
findPreference<Preference>(Constants.prefHeaderAbout)?.setSummary(R.string.pref_header_about_summary)
findPreference<Preference>(Constants.prefHeaderUpdates)?.setSummary(R.string.pref_header_updates_summary)
findPreference<Preference>(Constants.prefHeaderUpdates)?.setSummary(SettingsR.string.pref_header_updates_summary)
findPreference<Preference>(Constants.prefHeaderAccount)?.setSummary(R.string.pref_header_account_summary)
findPreference<Preference>(Constants.prefHeaderDebug)?.setSummary(R.string.pref_header_debug_summary)
findPreference<Preference>(Constants.prefHeaderGeneral)?.setSummary(R.string.pref_header_general_summary)
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,6 @@
tracking, dark theme
</string>
<string name="pref_header_general_title">General</string>
<string name="pref_header_updates_title">Updates</string>
<string name="pref_header_updates_summary">Updates, update options</string>
<string name="pref_header_about_summary">About
app, about app author, licenses, view source code
</string>
Expand Down
5 changes: 5 additions & 0 deletions features/settings/src/main/res/values/update_strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Header title for the updates category. -->
<string name="pref_header_updates_title">Updates</string>
<!-- Header summary for the updates category. -->
<string name="pref_header_updates_summary">Updates, update options</string>

<!-- Summary text for the download over metered setting. -->
<string name="pref_updates_download_over_metered_summary">Switching this on will allow
downloads on cellular as well
Expand Down

0 comments on commit 081839b

Please sign in to comment.