File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/src/main/kotlin/at/bitfire/davdroid/settings/migration Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class AccountSettingsMigration21 @Inject constructor(
42
42
private val addressBookAccountType = context.getString(R .string.account_type_address_book)
43
43
44
44
/* *
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
46
46
*/
47
47
override fun migrate (account : Account ) {
48
48
if (Build .VERSION .SDK_INT >= 34 ) {
@@ -59,12 +59,11 @@ class AccountSettingsMigration21 @Inject constructor(
59
59
60
60
/* *
61
61
* 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.
64
63
*/
65
64
private fun cancelSyncs (accountType : String , authorities : List <String >) {
66
65
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 " )
68
67
for (authority in authorities)
69
68
ContentResolver .cancelSync(account, authority) // Ignores possibly set sync extras
70
69
}
You can’t perform that action at this time.
0 commit comments