Prevent cross-activity animation if scene transition is set
By capture the animation type and getResultReceiver from
ActivityOptions, the activity can predict whether there exists a shared
element transition when exit. And for Android U we just skip the
cross-activity animation if client has request a shared element
transition.
Bug: 259428131
Test: atest BackNavigationControllerTests
Test: manual test, verify core won't prepare animation if client
activity has request a shared element transition by
ActivityOptions#makeSceneTransitionAnimation
Change-Id: I0400d528b9caf17086b53bcb3046a2dabcfaf6a5
6 files changed