mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Add FLAG_ACTIVITY_NEW_TASK flag for autofill tile to avoid crash (#3943)
This commit is contained in:
parent
cb1e4f6b39
commit
7fd16c9e10
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ class BitwardenAutofillTileService : TileService() {
|
||||||
}
|
}
|
||||||
accessibilityAutofillManager.accessibilityAction = AccessibilityAction.AttemptParseUri
|
accessibilityAutofillManager.accessibilityAction = AccessibilityAction.AttemptParseUri
|
||||||
val intent = Intent(applicationContext, AccessibilityActivity::class.java)
|
val intent = Intent(applicationContext, AccessibilityActivity::class.java)
|
||||||
|
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
if (isBuildVersionBelow(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)) {
|
if (isBuildVersionBelow(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)) {
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
startActivityAndCollapse(intent)
|
startActivityAndCollapse(intent)
|
||||||
|
|
Loading…
Reference in a new issue