Update the mock hotseat for the Gesture Navigation tutorial
The redesigned gesture navigation tutorial was using older files for the mock hotseat when swiping up to home. This adds in the correct files to align with the design and be consistent with the mobile version of the tutorial. Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL Bug: 278790706 Test: Went through the gesture tutorial on small screen and large screen devices. Change-Id: Ib3cffd1b8b62220ff0b1458e32b3825396cdb6a0
This commit is contained in:
1 parent
5c18fa35b2
commit
2f3d412b24
6 files changed
+295
-53
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user