diff --git a/app/build.gradle b/app/build.gradle index 166c179c7c7455c8c08a35f08610fdeccd7b3a55..0904d4364eacd09f6c8c0367d6eb9880d005981a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,7 +23,7 @@ android { defaultConfig { applicationId "foundation.e.accountmanager" - versionCode 403090003 + versionCode 403090004 versionName '4.3.9' buildConfigField "long", "buildTime", System.currentTimeMillis() + "L" diff --git a/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt b/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt index c370730a921b337b08c59fd58d936be33461215d..eb36c64150b60b7474b7012d4cfbffce1fff6e64 100644 --- a/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt +++ b/app/src/main/kotlin/at/bitfire/davdroid/syncadapter/SyncManager.kt @@ -894,15 +894,21 @@ abstract class SyncManager, out CollectionType: L val contentIntent: Intent var viewItemAction: NotificationCompat.Action? = null - if (account.type in AccountUtils.getMainAccountTypes(context) + + if ( + (account.type in AccountUtils.getMainAccountTypes(context) + || account.type == context.getString(R.string.account_type_eelo_address_book)) && (e is UnauthorizedException || e is NotFoundException)) { contentIntent = Intent(context, SettingsActivity::class.java) - contentIntent.putExtra(SettingsActivity.EXTRA_ACCOUNT, - if (authority == ContactsContract.AUTHORITY) - mainAccount - else - account) + + val contentAccount = if (authority == ContactsContract.AUTHORITY) { + mainAccount + } else { + account + } + contentIntent.putExtra(SettingsActivity.EXTRA_ACCOUNT, contentAccount) + } else { contentIntent = buildDebugInfoIntent(e, local, remote) if (local != null)