Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4e868af authored by Randy Pfohl's avatar Randy Pfohl Committed by Android (Google) Code Review
Browse files

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

parents d6fb2c45 f572cc56
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 {