Merge "Ensure we launch gesture tutorial as new task" into udc-dev am: a4e868af0d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/22788321

Change-Id: I41ca0ae8964074306cff9e537842980dbb2ea00b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Randy Pfohl
2023-04-24 18:28:47 +00:00
committed by Automerger Merge Worker

View File

@@ -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 {