1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Disabled system contextual action

This commit is contained in:
M66B 2019-09-14 17:39:08 +02:00
parent 3c276b889c
commit 2e13aecc88
2 changed files with 6 additions and 3 deletions

View file

@ -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"

View file

@ -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