From f572cc569efca88fb6fdfecf61e5179d1fdc086d Mon Sep 17 00:00:00 2001 From: Randy Pfohl Date: Fri, 21 Apr 2023 16:47:35 +0000 Subject: [PATCH] Ensure we launch gesture tutorial as new task test: built for two pane device and verified it opens full screen bug: 278918583 Change-Id: Icee33cb4a931e3037eab8e0146eddca55a5fd09d --- .../settings/gestures/SystemNavigationGestureSettings.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java index ced469aaef7..0d25190cc40 100644 --- a/src/com/android/settings/gestures/SystemNavigationGestureSettings.java +++ b/src/com/android/settings/gestures/SystemNavigationGestureSettings.java @@ -80,6 +80,8 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i static final String ACTION_GESTURE_SANDBOX = "com.android.quickstep.action.GESTURE_SANDBOX"; final Intent mLaunchSandboxIntent = new Intent(ACTION_GESTURE_SANDBOX) + .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + .putExtra("use_tutorial_menu", true) .setPackage(LAUNCHER_PACKAGE_NAME); private static final int MIN_LARGESCREEN_WIDTH_DP = 600; @@ -246,7 +248,7 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i case KEY_SYSTEM_NAV_GESTURAL: if (isGestureTutorialAvailable()){ videoPref.setOnPreferenceClickListener(preference -> { - startActivity(mLaunchSandboxIntent.putExtra("use_tutorial_menu", true)); + startActivity(mLaunchSandboxIntent); return true; }); } else {