diff --git a/app/build.gradle b/app/build.gradle index 0b61028c7d..4eff9c770a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -167,6 +167,7 @@ configurations.all { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) + def core_version = "1.2.0-alpha04" def appcompat_version = "1.1.0" def fragment_version = "1.1.0" def recyclerview_version = "1.1.0-beta04" @@ -199,6 +200,9 @@ dependencies { // https://developer.android.com/jetpack/androidx/releases/ + // https://mvnrepository.com/artifact/androidx.core/core + implementation "androidx.core:core:$core_version" + // https://mvnrepository.com/artifact/androidx.appcompat/appcompat // https://mvnrepository.com/artifact/androidx.fragment/fragment implementation "androidx.appcompat:appcompat:$appcompat_version" diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index d714c8c1eb..8079b78047 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2236,9 +2236,8 @@ class Core { .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setCategory(NotificationCompat.CATEGORY_EMAIL) .setVisibility(NotificationCompat.VISIBILITY_PRIVATE) - .setOnlyAlertOnce(alert_once); - - // TODO: setAllowSystemGeneratedContextualActions + .setOnlyAlertOnce(alert_once) + .setAllowSystemGeneratedContextualActions(false); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) mbuilder