Skip to content

Commit aadcc01

Browse files
committed
Minor edits to log statement and kdoc
1 parent 81a6e2a commit aadcc01

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/src/main/kotlin/at/bitfire/davdroid/settings/migration/AccountSettingsMigration21.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AccountSettingsMigration21 @Inject constructor(
4242
private val addressBookAccountType = context.getString(R.string.account_type_address_book)
4343

4444
/**
45-
* Cancel any (after an update) possibly forever pending account syncs of the different authorities
45+
* Cancel any possibly forever pending account syncs of the different authorities
4646
*/
4747
override fun migrate(account: Account) {
4848
if (Build.VERSION.SDK_INT >= 34) {
@@ -59,12 +59,11 @@ class AccountSettingsMigration21 @Inject constructor(
5959

6060
/**
6161
* Cancels any (possibly forever pending) syncs for the accounts of given account type for all
62-
* authorities.
63-
* Note: Sync extras are ignored.
62+
* given authorities.
6463
*/
6564
private fun cancelSyncs(accountType: String, authorities: List<String>) {
6665
accountManager.getAccountsByType(accountType).forEach { account ->
67-
logger.info("Android 14+: Canceling all (possibly forever pending) syncs for $account")
66+
logger.info("Android 14+: Canceling all (possibly forever pending) sync adapter syncs for $account")
6867
for (authority in authorities)
6968
ContentResolver.cancelSync(account, authority) // Ignores possibly set sync extras
7069
}

0 commit comments

Comments
 (0)