From e2bf7d5e03046af52e1f7b20f77d57cfde59a2f9 Mon Sep 17 00:00:00 2001 From: Hani Kazmi Date: Thu, 20 Mar 2025 05:57:26 -0700 Subject: [PATCH] [AAPM] Open Settings from Dialog in New Task Test: Presubmit Test: Manually tested on device Bug: 404595286 Flag: EXEMPT bugfix Change-Id: Ib100861a09429f1df7cfc909cb567f45cff44401 --- .../security/ActionDisabledByAdvancedProtectionDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/security/ActionDisabledByAdvancedProtectionDialog.kt b/src/com/android/settings/security/ActionDisabledByAdvancedProtectionDialog.kt index 1d70823f49f..3a18bc42f59 100644 --- a/src/com/android/settings/security/ActionDisabledByAdvancedProtectionDialog.kt +++ b/src/com/android/settings/security/ActionDisabledByAdvancedProtectionDialog.kt @@ -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