1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +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 { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
def core_version = "1.2.0-alpha04"
def appcompat_version = "1.1.0" def appcompat_version = "1.1.0"
def fragment_version = "1.1.0" def fragment_version = "1.1.0"
def recyclerview_version = "1.1.0-beta04" def recyclerview_version = "1.1.0-beta04"
@ -199,6 +200,9 @@ dependencies {
// https://developer.android.com/jetpack/androidx/releases/ // 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.appcompat/appcompat
// https://mvnrepository.com/artifact/androidx.fragment/fragment // https://mvnrepository.com/artifact/androidx.fragment/fragment
implementation "androidx.appcompat:appcompat:$appcompat_version" implementation "androidx.appcompat:appcompat:$appcompat_version"

View file

@ -2236,9 +2236,8 @@ class Core {
.setPriority(NotificationCompat.PRIORITY_DEFAULT) .setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setCategory(NotificationCompat.CATEGORY_EMAIL) .setCategory(NotificationCompat.CATEGORY_EMAIL)
.setVisibility(NotificationCompat.VISIBILITY_PRIVATE) .setVisibility(NotificationCompat.VISIBILITY_PRIVATE)
.setOnlyAlertOnce(alert_once); .setOnlyAlertOnce(alert_once)
.setAllowSystemGeneratedContextualActions(false);
// TODO: setAllowSystemGeneratedContextualActions
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
mbuilder mbuilder