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="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
|
||||||
|
|
Loading…
Reference in New Issue