Adjust global update preference wording and visibility

(cherry picked from commit afc80d6a7c5e0e8cdeff713616e126d9313afa7c)
This commit is contained in:
arkon 2021-12-17 14:14:48 -05:00 committed by Jobobby04
parent 9b3a839515
commit cb00bf66cf
3 changed files with 4 additions and 10 deletions

View File

@ -228,8 +228,6 @@ class SettingsLibraryController : SettingsController() {
entryValues = arrayOf(MANGA_FULLY_READ, MANGA_ONGOING)
defaultValue = preferences.libraryUpdateMangaRestriction().defaultValue
visibleIfGlobalUpdateEnabled()
fun updateSummary() {
val restrictions = preferences.libraryUpdateMangaRestriction().get()
.sorted()
@ -257,8 +255,6 @@ class SettingsLibraryController : SettingsController() {
key = Keys.libraryUpdateCategories
titleRes = R.string.categories
visibleIfGlobalUpdateEnabled()
onClick {
LibraryGlobalUpdateCategoriesDialog().showDialog(router)
}
@ -319,7 +315,6 @@ class SettingsLibraryController : SettingsController() {
titleRes = R.string.pref_library_update_refresh_metadata
summaryRes = R.string.pref_library_update_refresh_metadata_summary
defaultValue = false
visibleIfGlobalUpdateEnabled()
}
if (trackManager.hasLoggedServices()) {
switchPreference {
@ -327,7 +322,6 @@ class SettingsLibraryController : SettingsController() {
titleRes = R.string.pref_library_update_refresh_trackers
summaryRes = R.string.pref_library_update_refresh_trackers_summary
defaultValue = false
visibleIfGlobalUpdateEnabled()
}
}
}

View File

@ -21,7 +21,7 @@
<item
android:id="@+id/action_update_library"
android:icon="@drawable/ic_refresh_24dp"
android:title="@string/action_update_library"
android:title="@string/pref_category_library_update"
app:iconTint="?attr/colorOnSurface"
app:showAsAction="ifRoom" />

View File

@ -207,15 +207,15 @@
<string name="pref_jump_to_chapters">Jump to chapters on open</string>
<string name="pref_category_library_update">Global update</string>
<string name="pref_library_update_interval">Update frequency</string>
<string name="update_never">Manual</string>
<string name="pref_library_update_interval">Automatic updates</string>
<string name="update_never">Off</string>
<string name="update_6hour">Every 6 hours</string>
<string name="update_12hour">Every 12 hours</string>
<string name="update_24hour">Daily</string>
<string name="update_48hour">Every 2 days</string>
<string name="update_72hour">Every 3 days</string>
<string name="update_weekly">Weekly</string>
<string name="pref_library_update_restriction">Device restrictions</string>
<string name="pref_library_update_restriction">Automatic updates device restrictions</string>
<string name="connected_to_wifi">Only on Wi-Fi</string>
<string name="charging">Charging</string>
<string name="restrictions">Restrictions: %s</string>