From 7e8a39e6de80ff749e55b5b78cf2c6dc59b80b8e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 15 Sep 2022 16:02:28 +0200 Subject: [PATCH] Suppress `LaunchActivityFromNotification`. This is fine here, this is the notification for the diagnostic, we do not want to start an Activity. --- tools/lint/lint.xml | 3 +++ .../im/vector/app/features/notifications/NotificationUtils.kt | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/lint/lint.xml b/tools/lint/lint.xml index 84f55bb715..8b4b6ef617 100644 --- a/tools/lint/lint.xml +++ b/tools/lint/lint.xml @@ -108,6 +108,9 @@ + + + diff --git a/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt b/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt index 6d1c77d9e9..d00c1dcc42 100755 --- a/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt +++ b/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt @@ -967,6 +967,7 @@ class NotificationUtils @Inject constructor( } } + @SuppressLint("LaunchActivityFromNotification") fun displayDiagnosticNotification() { val testActionIntent = Intent(context, TestNotificationReceiver::class.java) testActionIntent.action = actionIds.diagnostic