mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08: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:
parent
832a472b57
commit
7e8a39e6de
@ -108,6 +108,9 @@
|
||||
<issue id="TypographyDashes" severity="error" />
|
||||
<issue id="PluralsCandidate" severity="error" />
|
||||
|
||||
<!-- Notification -->
|
||||
<issue id="LaunchActivityFromNotification" severity="error" />
|
||||
|
||||
<!-- DI -->
|
||||
<issue id="JvmStaticProvidesInObjectDetector" severity="error" />
|
||||
</lint>
|
||||
|
@ -967,6 +967,7 @@ class NotificationUtils @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("LaunchActivityFromNotification")
|
||||
fun displayDiagnosticNotification() {
|
||||
val testActionIntent = Intent(context, TestNotificationReceiver::class.java)
|
||||
testActionIntent.action = actionIds.diagnostic
|
||||
|
Loading…
Reference in New Issue
Block a user