From 1c52a055f492663a9f610270af06d4c96e5700b2 Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Sun, 19 Nov 2023 19:58:51 +1100 Subject: [PATCH] fix: upstream conflict. Signed-off-by: KaiserBh --- .../settings/screen/SettingsDataScreen.kt | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt index 0fe8161a6..03b2d2de9 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt @@ -81,15 +81,15 @@ object SettingsDataScreen : SearchableSettings { getDataGroup(), ) + listOf( Preference.PreferenceGroup( - title = stringResource(R.string.label_sync), + title = stringResource(MR.strings.label_sync), preferenceItems = listOf( Preference.PreferenceItem.ListPreference( pref = syncPreferences.syncService(), - title = stringResource(R.string.pref_sync_service), + title = stringResource(MR.strings.pref_sync_service), entries = mapOf( - SyncManager.SyncService.NONE.value to stringResource(R.string.off), - SyncManager.SyncService.SYNCYOMI.value to stringResource(R.string.syncyomi), - SyncManager.SyncService.GOOGLE_DRIVE.value to stringResource(R.string.google_drive), + SyncManager.SyncService.NONE.value to stringResource(MR.strings.off), + SyncManager.SyncService.SYNCYOMI.value to stringResource(MR.strings.syncyomi), + SyncManager.SyncService.GOOGLE_DRIVE.value to stringResource(MR.strings.google_drive), ), onValueChanged = { true }, ), @@ -365,7 +365,7 @@ private fun getGoogleDrivePreferences(): List { val googleDriveSync = Injekt.get() return listOf( Preference.PreferenceItem.TextPreference( - title = stringResource(MR.string.pref_google_drive_sign_in), + title = stringResource(MR.strings.pref_google_drive_sign_in), onClick = { val intent = googleDriveSync.getSignInIntent() context.startActivity(intent) @@ -390,13 +390,13 @@ private fun getGoogleDrivePurge(): Preference.PreferenceItem.TextPreference { val result = googleDriveSync.deleteSyncDataFromGoogleDrive() when (result) { GoogleDriveSyncService.DeleteSyncDataStatus.NOT_INITIALIZED -> context.toast( - MR.string.google_drive_not_signed_in, + MR.strings.google_drive_not_signed_in, ) GoogleDriveSyncService.DeleteSyncDataStatus.NO_FILES -> context.toast( - MR.string.google_drive_sync_data_not_found, + MR.strings.google_drive_sync_data_not_found, ) GoogleDriveSyncService.DeleteSyncDataStatus.SUCCESS -> context.toast( - MR.string.google_drive_sync_data_purged, + MR.strings.google_drive_sync_data_purged, ) } } @@ -406,7 +406,7 @@ private fun getGoogleDrivePurge(): Preference.PreferenceItem.TextPreference { } return Preference.PreferenceItem.TextPreference( - title = stringResource(MR.string.pref_google_drive_purge_sync_data), + title = stringResource(MR.strings.pref_google_drive_purge_sync_data), onClick = { showPurgeDialog.value = true }, ) } @@ -418,16 +418,16 @@ fun PurgeConfirmationDialog( ) { AlertDialog( onDismissRequest = onDismissRequest, - title = { Text(text = stringResource(MR.string.pref_purge_confirmation_title)) }, - text = { Text(text = stringResource(MR.string.pref_purge_confirmation_message)) }, + title = { Text(text = stringResource(MR.strings.pref_purge_confirmation_title)) }, + text = { Text(text = stringResource(MR.strings.pref_purge_confirmation_message)) }, dismissButton = { TextButton(onClick = onDismissRequest) { - Text(text = stringResource(MR.string.action_cancel)) + Text(text = stringResource(MR.strings.action_cancel)) } }, confirmButton = { TextButton(onClick = onConfirm) { - Text(text = stringResource(android.R.string.ok)) + Text(text = stringResource(MR.strings.action_ok)) } }, ) @@ -438,8 +438,8 @@ private fun getSelfHostPreferences(syncPreferences: SyncPreferences): List scope.launch { @@ -452,8 +452,8 @@ private fun getSelfHostPreferences(syncPreferences: SyncPreferences): List