diff --git a/app/src/main/java/at/bitfire/davdroid/syncadapter/EeloAccountAuthenticatorService.kt b/app/src/main/java/at/bitfire/davdroid/syncadapter/EeloAccountAuthenticatorService.kt index f9d71fd4c53dd04db278e12c502b011ae76784f1..af37b24b5f429bb858db3bf9c69fd8fa0c353278 100644 --- a/app/src/main/java/at/bitfire/davdroid/syncadapter/EeloAccountAuthenticatorService.kt +++ b/app/src/main/java/at/bitfire/davdroid/syncadapter/EeloAccountAuthenticatorService.kt @@ -118,24 +118,6 @@ class EeloAccountAuthenticatorService : Service(), OnAccountsUpdateListener { ).appDatabase() cleanupAccounts(applicationContext, db) - - val eeloAccounts = ArrayList(accounts?.asList() ?: emptyList()) - eeloAccounts.removeIf { it.type != getString(R.string.eelo_account_type) } - eeloAccounts.removeAll( - accountManager.getAccountsByType( - getString( - R.string.eelo_account_type - ) - ).toSet() - ) - - for (removedAccount in eeloAccounts) { - val intent = Intent("drive.services.ResetService") - intent.setPackage(getString(R.string.e_drive_package_name)) - intent.putExtra(AccountManager.KEY_ACCOUNT_NAME, removedAccount.name) - intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, removedAccount.type) - startService(intent) - } } }