Merge "Add gesture navigation education animations for foldables" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
95b6f8c409
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -81,7 +81,9 @@ final class OverviewGestureTutorialController extends SwipeUpGestureTutorialCont
|
||||
@Override
|
||||
protected int getGestureLottieAnimationId() {
|
||||
return mTutorialFragment.isLargeScreen()
|
||||
? R.raw.overview_gesture_tutorial_tablet_animation
|
||||
? mTutorialFragment.isFoldable()
|
||||
? R.raw.overview_gesture_tutorial_open_foldable_animation
|
||||
: R.raw.overview_gesture_tutorial_tablet_animation
|
||||
: R.raw.overview_gesture_tutorial_animation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user