[AAPM] Open Settings from Dialog in New Task

Test: Presubmit
Test: Manually tested on device
Bug: 404595286
Flag: EXEMPT bugfix
Change-Id: Ib100861a09429f1df7cfc909cb567f45cff44401
This commit is contained in:
Hani Kazmi
2025-03-20 05:57:26 -07:00
parent 7ae4e0fa0b
commit e2bf7d5e03

View File

@@ -94,6 +94,7 @@ class ActionDisabledByAdvancedProtectionDialog : SpaDialogWindowTypeActivity() {
)
val helpIntent = Intent.parseUri(helpIntentUri, Intent.URI_INTENT_SCHEME)
if (helpIntent == null) return null
helpIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
val helpActivityInfo = packageManager.resolveActivity(helpIntent, /* flags */ 0)
?.activityInfo
if (helpActivityInfo == null) return null