Skip to content
Commit 5341d1c7 authored by lumark's avatar lumark
Browse files

Make WC#applyAnimation can apply on Task / TaskStack layer (1/N)

- Use WC#getDisplayContent instead WC#mDisplayContent in
WC#okToAnimation and WC#okToAnimate.

- Fix some places that calls isAnimating() needs to add PARENTS flag.

- Add unit tests to verify Task / Stack can applyAnimation with expected
  animation state.

- In Task#createRemoteAnimationTarget(), use WC#getTopMostActivity to
  get top most activity rather than using getTopVisibleActivity, to
  prevent closing activity may not get corresponding activity instance
  case.

- Fix WC#isWaitingForTransitionStart and WC#isAppTransition won't get
  correct result when animating app transition on Task / TaskStack container.

- To ensure onAppTransitionFinished will be called when enabling
  hierarchical animation, needs to let activity.onAnimationFinished()
  also be called.

- Implement Task#getAnimationBounds to get stack's bounds when
appStackClipMode is STACK_CLIP_BEFORE_ANIM.

Bug: 142617871
Bug: 131661052
Test: atest WindowContainerTests

Change-Id: Id97087819cab54ba35fb4b9ae4b5b95a572ad377
parent c4a819f5
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