From cbc5d2721b8f97e619f4bcf63cb6c58c6f2e7580 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Fri, 24 Apr 2020 23:26:46 +0800 Subject: [PATCH] Polish fixed rotated recents animation For the cases that move recents or home to top, the transformed state is kept until the transition of task-to-front is done. This fixes the flickering when switching between recents and the activity that supported PiP. Also eliminated an additional toggle of fixed rotation transform from finishing recents animation. Fixes: 154588225 Test: atest RecentsAnimationControllerTest Change-Id: I92c6dfac1d030f76f62a10bd0596f935adffb63c --- .../com/android/server/wm/DisplayContent.java | 60 +++++++++++++++++-- .../server/wm/RecentsAnimationController.java | 11 ++-- .../wm/RecentsAnimationControllerTest.java | 18 +++++- 3 files changed, 78 insertions(+), 11 deletions(-) diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index 5b2ccf43833da..a1620fe410c77 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java @@ -494,6 +494,7 @@ class DisplayContent extends WindowContainer