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:
Benoit Marty 2022-09-15 16:02:28 +02:00 committed by Benoit Marty
parent 832a472b57
commit 7e8a39e6de
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -967,6 +967,7 @@ class NotificationUtils @Inject constructor(
}
}
@SuppressLint("LaunchActivityFromNotification")
fun displayDiagnosticNotification() {
val testActionIntent = Intent(context, TestNotificationReceiver::class.java)
testActionIntent.action = actionIds.diagnostic