Skip to content

Commit

Permalink
Rename "Cancel" of Media Sync to "Abort"
Browse files Browse the repository at this point in the history
 - in "Media Sync Log" dialog box and in "Syncing media" notification

 - The use of "Abort" in the dialog box is consistency with Anki Desktop.
  • Loading branch information
snowtimeglass authored and lukstbit committed Jun 21, 2024
1 parent a4f9f95 commit 16c23cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/java/com/ichi2/anki/Sync.kt
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ suspend fun monitorMediaSync(
.setPositiveButton(R.string.dialog_continue) { _, _ ->
scope.cancel()
}
.setNegativeButton(R.string.dialog_cancel) { _, _ ->
.setNegativeButton(TR.syncAbortButton()) { _, _ ->
cancelMediaSync(backend)
}
.show()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SyncMediaWorker(

override suspend fun getForegroundInfo(): ForegroundInfo {
val title = applicationContext.getString(R.string.syncing_media)
val cancelTitle = applicationContext.getString(R.string.dialog_cancel)
val cancelTitle = CollectionManager.TR.syncAbortButton()
val notification = buildNotification {
setContentTitle(title)
setOngoing(true)
Expand Down Expand Up @@ -148,7 +148,7 @@ class SyncMediaWorker(

private fun getProgressNotification(progress: CharSequence): Notification {
val title = applicationContext.getString(R.string.syncing_media)
val cancelTitle = applicationContext.getString(R.string.dialog_cancel)
val cancelTitle = CollectionManager.TR.syncAbortButton()

return buildNotification {
setContentTitle(title)
Expand Down

0 comments on commit 16c23cf

Please sign in to comment.