Skip to content

Commit

Permalink
improve media sync message
Browse files Browse the repository at this point in the history
  • Loading branch information
RobozinhoD committed Jun 7, 2024
1 parent f2cca93 commit 07a5405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ private suspend fun handleNormalSync(
SyncCollectionResponse.ChangesRequired.NO_CHANGES -> {
// scheduler version may have changed
withCol { _loadScheduler() }
deckPicker.showSyncLogMessage(R.string.sync_database_acknowledge, output.serverMessage)
val message = if (syncMedia) R.string.col_synced_media_in_background else R.string.sync_database_acknowledge
deckPicker.showSyncLogMessage(message, output.serverMessage)
deckPicker.refreshState()
if (syncMedia) {
SyncMediaWorker.start(deckPicker, auth2)
Expand Down
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/04-network.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<string name="sync_title">Synchronization</string>
<string name="sync_log_uploading_message">Full sync from local</string>
<string name="sync_database_acknowledge">Collection synchronized</string>
<string name="col_synced_media_in_background">Collection synced. Media is being synced in the background.</string>
<string name="sync_corrupt_database">Your database is corrupt. Please fix it before trying again to sync.\n\nSee %s for information about repairing your database.</string>
<!-- Please run ‘Check database’ before syncing -->
<string name="sync_sanity_local">Local</string>
Expand Down

0 comments on commit 07a5405

Please sign in to comment.