Adjust global update preference wording and visibility

This commit is contained in:
arkon 2021-12-17 14:14:48 -05:00
parent 532a1b1aba
commit afc80d6a7c
3 changed files with 4 additions and 10 deletions

View File

@ -202,8 +202,6 @@ class SettingsLibraryController : SettingsController() {
entryValues = arrayOf(MANGA_FULLY_READ, MANGA_ONGOING)
defaultValue = preferences.libraryUpdateMangaRestriction().defaultValue
visibleIfGlobalUpdateEnabled()
fun updateSummary() {
val restrictions = preferences.libraryUpdateMangaRestriction().get()
.sorted()
@ -231,8 +229,6 @@ class SettingsLibraryController : SettingsController() {
key = Keys.libraryUpdateCategories
titleRes = R.string.categories
visibleIfGlobalUpdateEnabled()
onClick {
LibraryGlobalUpdateCategoriesDialog().showDialog(router)
}
@ -275,7 +271,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 {
@ -283,7 +278,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>