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

Commit 5547d3b9 authored by Saumya Prakash's avatar Saumya Prakash
Browse files

Add gesture navigation education animations for foldables

This change adds in additional Lottie animations for foldable devices
for the redesigned gesture navigation tutorial.

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Bug: 253520701
Test: Went through the gesture navigation tutorial on foldables and verified animations show up correctly.
Change-Id: I88b9094dcc0074f70670402870944db0fa57ebbe
parent a61ac589
Loading
Loading
Loading
Loading
+1 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0

File added.

Preview size limit exceeded, changes collapsed.

+3 −1
Original line number Diff line number Diff line
@@ -70,7 +70,9 @@ final class BackGestureTutorialController extends TutorialController {
    @Override
    protected int getGestureLottieAnimationId() {
        return mTutorialFragment.isLargeScreen()
                ? R.raw.back_gesture_tutorial_tablet_animation
                ? mTutorialFragment.isFoldable()
                    ? R.raw.back_gesture_tutorial_open_foldable_animation
                    : R.raw.back_gesture_tutorial_tablet_animation
                : R.raw.back_gesture_tutorial_animation;
    }

+3 −1
Original line number Diff line number Diff line
@@ -71,7 +71,9 @@ final class HomeGestureTutorialController extends SwipeUpGestureTutorialControll
    @Override
    protected int getGestureLottieAnimationId() {
        return mTutorialFragment.isLargeScreen()
                ? R.raw.home_gesture_tutorial_tablet_animation
                ? mTutorialFragment.isFoldable()
                    ? R.raw.home_gesture_tutorial_open_foldable_animation
                    : R.raw.home_gesture_tutorial_tablet_animation
                : R.raw.home_gesture_tutorial_animation;
    }

Loading