Skip to content
Commit 9aee2dc7 authored by shawnlin's avatar shawnlin
Browse files

Attach nav bar to app during transition for non-remote animation case

- Play fade-out/in animation in AppTransition.goodToGo() if it's not a
  remote animation.
- Create a new class NavFadeAnimationAdapter:
  - Able to play fade-out and fade-in sequentially.
  - Able to reparent the animation leash to the specified parent when
    the animation starts.

- This CL also refines a case when users launch an app and then swipe up
  immediately to enter recent app by canceling animation of the nav
  token in RecentsAnimationController.attachNavigationBarToApp().
  In this case, the swipe-up gesture should have higher priority to
  control the nav bar.

Bug: 185303414
Test: - atest RecentsAnimationControllerTest
      - Launch clock widget from launcher and observe the transition
      - Launch an app and then swipe up immediately to enter recent app
Change-Id: Ic8ad3dfe4fe3efcf88cf3cfcf362d18e3c47f632
parent 68667bdd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment