diff --git a/quickstep/res/layout-land/redesigned_gesture_tutorial_mock_hotseat.xml b/quickstep/res/layout-land/redesigned_gesture_tutorial_mock_hotseat.xml index 6c08d14b6b..af86ae735d 100644 --- a/quickstep/res/layout-land/redesigned_gesture_tutorial_mock_hotseat.xml +++ b/quickstep/res/layout-land/redesigned_gesture_tutorial_mock_hotseat.xml @@ -22,49 +22,46 @@ android:paddingVertical="26dp" android:paddingHorizontal="56dp"> + + + android:clipToOutline="true" /> + android:clipToOutline="true" /> + android:clipToOutline="true" /> + android:clipToOutline="true" /> \ No newline at end of file diff --git a/quickstep/res/layout-land/redesigned_gesture_tutorial_tablet_mock_hotseat.xml b/quickstep/res/layout-land/redesigned_gesture_tutorial_tablet_mock_hotseat.xml new file mode 100644 index 0000000000..983c15b23b --- /dev/null +++ b/quickstep/res/layout-land/redesigned_gesture_tutorial_tablet_mock_hotseat.xml @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/quickstep/res/layout/redesigned_gesture_tutorial_foldable_mock_hotseat.xml b/quickstep/res/layout/redesigned_gesture_tutorial_foldable_mock_hotseat.xml new file mode 100644 index 0000000000..b41eb8d570 --- /dev/null +++ b/quickstep/res/layout/redesigned_gesture_tutorial_foldable_mock_hotseat.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/quickstep/res/layout/redesigned_gesture_tutorial_mock_hotseat.xml b/quickstep/res/layout/redesigned_gesture_tutorial_mock_hotseat.xml index b1c8b31621..e93a0fca74 100644 --- a/quickstep/res/layout/redesigned_gesture_tutorial_mock_hotseat.xml +++ b/quickstep/res/layout/redesigned_gesture_tutorial_mock_hotseat.xml @@ -23,54 +23,45 @@ android:paddingStart="26dp" android:paddingEnd="26dp"> + + + android:clipToOutline="true" /> + android:clipToOutline="true" /> + android:clipToOutline="true" /> + android:clipToOutline="true" /> + app:layout_constraintTop_toBottomOf="@id/hotseat_flow" /> \ No newline at end of file diff --git a/quickstep/res/layout/redesigned_gesture_tutorial_tablet_mock_hotseat.xml b/quickstep/res/layout/redesigned_gesture_tutorial_tablet_mock_hotseat.xml new file mode 100644 index 0000000000..b41eb8d570 --- /dev/null +++ b/quickstep/res/layout/redesigned_gesture_tutorial_tablet_mock_hotseat.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/quickstep/src/com/android/quickstep/interaction/TutorialController.java b/quickstep/src/com/android/quickstep/interaction/TutorialController.java index 6f50e3e4a5..67a0756646 100644 --- a/quickstep/src/com/android/quickstep/interaction/TutorialController.java +++ b/quickstep/src/com/android/quickstep/interaction/TutorialController.java @@ -233,13 +233,19 @@ abstract class TutorialController implements BackGestureAttemptCallback, @LayoutRes protected int getMockHotseatResId() { - return mTutorialFragment.isLargeScreen() - ? (mTutorialFragment.isFoldable() + if (ENABLE_NEW_GESTURE_NAV_TUTORIAL.get()) { + return mTutorialFragment.isLargeScreen() + ? mTutorialFragment.isFoldable() + ? R.layout.redesigned_gesture_tutorial_foldable_mock_hotseat + : R.layout.redesigned_gesture_tutorial_tablet_mock_hotseat + : R.layout.redesigned_gesture_tutorial_mock_hotseat; + } else { + return mTutorialFragment.isLargeScreen() + ? mTutorialFragment.isFoldable() ? R.layout.gesture_tutorial_foldable_mock_hotseat - : R.layout.gesture_tutorial_tablet_mock_hotseat) - : (ENABLE_NEW_GESTURE_NAV_TUTORIAL.get() - ? R.layout.redesigned_gesture_tutorial_mock_hotseat - : R.layout.gesture_tutorial_mock_hotseat); + : R.layout.gesture_tutorial_tablet_mock_hotseat + : R.layout.gesture_tutorial_mock_hotseat; + } } @LayoutRes