summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorTracy Zhou <tracyzhou@google.com>2019-04-08 00:32:40 -0700
committerTracy Zhou <tracyzhou@google.com>2019-04-09 10:37:32 -0700
commit9c675d4f4b682fd1f18a7dcc52559516214f9c5e (patch)
tree7d346a99fcf5361c0f70cd1fadcee8fb9c5f840c /core/java
parent1be371ddbd49524ec4127a6c01784981a467d45b (diff)
Implement the new PiP animation (fade-in).
The new fully gestural navigation changes how user goes home from an app as well as the animation of the app transition. The current PiP animation (bounds) is not compatible with the new model because of the direction of movements. Instead of animating bounds, we can fade the PiP window in after app closing animation finishes. Fixes: 122609330 Test: 1. Open youtube, play a video, tap home to observe the new PiP animation (demo video attached in the ticket b/122609330) 2. With gestural nav on, observe pip transition when swiping up to home. atest ActivityManagerPinnedStackTests atest BoundsAnimationControllerTests atest RecentsAnimationTestTest Change-Id: I28eeb1aa99c4fd569845ca7a42561f6b20796f9b
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/IRecentsAnimationController.aidl4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/view/IRecentsAnimationController.aidl b/core/java/android/view/IRecentsAnimationController.aidl
index 597b34bf8554..956161acd762 100644
--- a/core/java/android/view/IRecentsAnimationController.aidl
+++ b/core/java/android/view/IRecentsAnimationController.aidl
@@ -41,9 +41,11 @@ interface IRecentsAnimationController {
* with remote animation targets should be relinquished. If {@param moveHomeToTop} is true, then
* the home activity should be moved to the top. Otherwise, the home activity is hidden and the
* user is returned to the app.
+ * @param sendUserLeaveHint If set to true, {@link Activity#onUserLeaving} will be sent to the
+ * top resumed app, false otherwise.
*/
@UnsupportedAppUsage
- void finish(boolean moveHomeToTop);
+ void finish(boolean moveHomeToTop, boolean sendUserLeaveHint);
/**
* Called by the handler to indicate that the recents animation input consumer should be