mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 00:39:17 +01:00
Adjust global update preference wording and visibility
This commit is contained in:
parent
532a1b1aba
commit
afc80d6a7c
@ -202,8 +202,6 @@ class SettingsLibraryController : SettingsController() {
|
|||||||
entryValues = arrayOf(MANGA_FULLY_READ, MANGA_ONGOING)
|
entryValues = arrayOf(MANGA_FULLY_READ, MANGA_ONGOING)
|
||||||
defaultValue = preferences.libraryUpdateMangaRestriction().defaultValue
|
defaultValue = preferences.libraryUpdateMangaRestriction().defaultValue
|
||||||
|
|
||||||
visibleIfGlobalUpdateEnabled()
|
|
||||||
|
|
||||||
fun updateSummary() {
|
fun updateSummary() {
|
||||||
val restrictions = preferences.libraryUpdateMangaRestriction().get()
|
val restrictions = preferences.libraryUpdateMangaRestriction().get()
|
||||||
.sorted()
|
.sorted()
|
||||||
@ -231,8 +229,6 @@ class SettingsLibraryController : SettingsController() {
|
|||||||
key = Keys.libraryUpdateCategories
|
key = Keys.libraryUpdateCategories
|
||||||
titleRes = R.string.categories
|
titleRes = R.string.categories
|
||||||
|
|
||||||
visibleIfGlobalUpdateEnabled()
|
|
||||||
|
|
||||||
onClick {
|
onClick {
|
||||||
LibraryGlobalUpdateCategoriesDialog().showDialog(router)
|
LibraryGlobalUpdateCategoriesDialog().showDialog(router)
|
||||||
}
|
}
|
||||||
@ -275,7 +271,6 @@ class SettingsLibraryController : SettingsController() {
|
|||||||
titleRes = R.string.pref_library_update_refresh_metadata
|
titleRes = R.string.pref_library_update_refresh_metadata
|
||||||
summaryRes = R.string.pref_library_update_refresh_metadata_summary
|
summaryRes = R.string.pref_library_update_refresh_metadata_summary
|
||||||
defaultValue = false
|
defaultValue = false
|
||||||
visibleIfGlobalUpdateEnabled()
|
|
||||||
}
|
}
|
||||||
if (trackManager.hasLoggedServices()) {
|
if (trackManager.hasLoggedServices()) {
|
||||||
switchPreference {
|
switchPreference {
|
||||||
@ -283,7 +278,6 @@ class SettingsLibraryController : SettingsController() {
|
|||||||
titleRes = R.string.pref_library_update_refresh_trackers
|
titleRes = R.string.pref_library_update_refresh_trackers
|
||||||
summaryRes = R.string.pref_library_update_refresh_trackers_summary
|
summaryRes = R.string.pref_library_update_refresh_trackers_summary
|
||||||
defaultValue = false
|
defaultValue = false
|
||||||
visibleIfGlobalUpdateEnabled()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<item
|
<item
|
||||||
android:id="@+id/action_update_library"
|
android:id="@+id/action_update_library"
|
||||||
android:icon="@drawable/ic_refresh_24dp"
|
android:icon="@drawable/ic_refresh_24dp"
|
||||||
android:title="@string/action_update_library"
|
android:title="@string/pref_category_library_update"
|
||||||
app:iconTint="?attr/colorOnSurface"
|
app:iconTint="?attr/colorOnSurface"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
|
@ -207,15 +207,15 @@
|
|||||||
<string name="pref_jump_to_chapters">Jump to chapters on open</string>
|
<string name="pref_jump_to_chapters">Jump to chapters on open</string>
|
||||||
|
|
||||||
<string name="pref_category_library_update">Global update</string>
|
<string name="pref_category_library_update">Global update</string>
|
||||||
<string name="pref_library_update_interval">Update frequency</string>
|
<string name="pref_library_update_interval">Automatic updates</string>
|
||||||
<string name="update_never">Manual</string>
|
<string name="update_never">Off</string>
|
||||||
<string name="update_6hour">Every 6 hours</string>
|
<string name="update_6hour">Every 6 hours</string>
|
||||||
<string name="update_12hour">Every 12 hours</string>
|
<string name="update_12hour">Every 12 hours</string>
|
||||||
<string name="update_24hour">Daily</string>
|
<string name="update_24hour">Daily</string>
|
||||||
<string name="update_48hour">Every 2 days</string>
|
<string name="update_48hour">Every 2 days</string>
|
||||||
<string name="update_72hour">Every 3 days</string>
|
<string name="update_72hour">Every 3 days</string>
|
||||||
<string name="update_weekly">Weekly</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="connected_to_wifi">Only on Wi-Fi</string>
|
||||||
<string name="charging">Charging</string>
|
<string name="charging">Charging</string>
|
||||||
<string name="restrictions">Restrictions: %s</string>
|
<string name="restrictions">Restrictions: %s</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user