diff options
| author | 2024-09-20 20:00:49 -0700 | |
|---|---|---|
| committer | 2024-09-20 22:46:49 -0700 | |
| commit | 09fc80de5ad8608f131e13f097a4eea6ea64e39b (patch) | |
| tree | 69c2786266685ce12dc93a2cace2973d3d8b0f31 | |
| parent | 97344c760045dd600bcb23793604a31a8d64c088 (diff) | |
Start region sampling once app transition starts, instead of when it finishes
Follow up to https://googleplex-android-review.git.corp.google.com/q/topic:%22region_sampling_app_transitioning%22
So app transition cycle runs in the order of pending -> starting -> finished or cancelled.
For nav bar, region sampling is paused between pending and starting instead of the entire cycle of pending to finished or cancelled. https://source.corp.google.com/h/googleplex-android/platform/superproject/main/+/main:frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/LightBarTransitionsController.java;l=193;drc=c1274bdd5301b74ef502f9416f7df6cc3e37c018 For more information
The current implementation has a color change delay when swiping home if dark theme is turned off.
Bug: 361593564
Test: check the swipe home animation in light theme
Flag: EXEMPT bugfix
Change-Id: I693891e3cd8a2855a44e6dff9c4353e82e0bbb3b
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java b/packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java index b3c697e06a92..1216a8879751 100644 --- a/packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +++ b/packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java @@ -551,6 +551,12 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } @Override + public void appTransitionStarting(int displayId, long startTime, long duration, + boolean forced) { + appTransitionPending(false); + } + + @Override public void appTransitionCancelled(int displayId) { appTransitionPending(false); } |