Add FLAG_ACTIVITY_NEW_TASK flag for autofill tile to avoid crash (#3943)

This commit is contained in:
David Perez 2024-09-19 14:46:20 -05:00 committed by GitHub
parent cb1e4f6b39
commit 7fd16c9e10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,6 +44,7 @@ class BitwardenAutofillTileService : TileService() {
}
accessibilityAutofillManager.accessibilityAction = AccessibilityAction.AttemptParseUri
val intent = Intent(applicationContext, AccessibilityActivity::class.java)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (isBuildVersionBelow(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)) {
@Suppress("DEPRECATION")
startActivityAndCollapse(intent)