You've already forked element-android
mirror of
https://github.com/vector-im/element-android.git
synced 2025-08-09 01:42:06 +03:00
Suppress LaunchActivityFromNotification
. This is fine here, this is the notification for the diagnostic, we do not want to start an Activity.
This commit is contained in:
committed by
Benoit Marty
parent
832a472b57
commit
7e8a39e6de
@@ -108,6 +108,9 @@
|
|||||||
<issue id="TypographyDashes" severity="error" />
|
<issue id="TypographyDashes" severity="error" />
|
||||||
<issue id="PluralsCandidate" severity="error" />
|
<issue id="PluralsCandidate" severity="error" />
|
||||||
|
|
||||||
|
<!-- Notification -->
|
||||||
|
<issue id="LaunchActivityFromNotification" severity="error" />
|
||||||
|
|
||||||
<!-- DI -->
|
<!-- DI -->
|
||||||
<issue id="JvmStaticProvidesInObjectDetector" severity="error" />
|
<issue id="JvmStaticProvidesInObjectDetector" severity="error" />
|
||||||
</lint>
|
</lint>
|
||||||
|
@@ -967,6 +967,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("LaunchActivityFromNotification")
|
||||||
fun displayDiagnosticNotification() {
|
fun displayDiagnosticNotification() {
|
||||||
val testActionIntent = Intent(context, TestNotificationReceiver::class.java)
|
val testActionIntent = Intent(context, TestNotificationReceiver::class.java)
|
||||||
testActionIntent.action = actionIds.diagnostic
|
testActionIntent.action = actionIds.diagnostic
|
||||||
|
Reference in New Issue
Block a user