rename self hosted to SyncYomi

This commit is contained in:
Aria Moradi 2023-07-06 15:00:19 +03:30
parent 84eb68e1ba
commit bb89e9f1f5
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ object SettingsSyncScreen : SearchableSettings {
title = stringResource(R.string.pref_sync_service),
entries = mapOf(
0 to stringResource(R.string.off),
1 to stringResource(R.string.self_host),
1 to stringResource(R.string.syncyomi),
),
onValueChanged = { true },
),

View File

@ -49,7 +49,7 @@ class SyncManager(
enum class SyncService(val value: Int) {
NONE(0),
SELF_HOSTED(1),
SYNCYOMI(1),
;
companion object {
@ -95,7 +95,7 @@ class SyncManager(
// Handle sync based on the selected service
val syncService = when (val syncService = SyncService.fromInt(syncPreferences.syncService().get())) {
SyncService.SELF_HOSTED -> {
SyncService.SYNCYOMI -> {
SyncYomiSyncService(
context,
json,

View File

@ -547,7 +547,7 @@
<string name="pref_sync_service_summ">Select the service to sync your library with</string>
<string name="pref_sync_service_category">Automatic Synchronization</string>
<string name="pref_sync_interval">Synchronization frequency</string>
<string name="self_host">Self-hosted (SyncYomi)</string>
<string name="syncyomi">SyncYomi</string>
<string name="sync_completed_message">Done in %1$s</string>
<string name="last_synchronization">Last Synchronization</string>