From c9b7df976301fefcb7a2ffbe791d6a73b6429184 Mon Sep 17 00:00:00 2001 From: Yasin Kilicdere Date: Wed, 29 Mar 2023 21:08:05 +0100 Subject: [PATCH] Prevent app icons blinking after a user switch. This CL moves OverviewProxyService from onUserChanged to onUserChanging, to allow the jank to happen earlier while the user switch is happening (i.e. while the screen is frozen), Bug: 275349347 Test: Visual (screen recordings attached to the bug) Change-Id: I8a5c2f56ff5d94f8c3754acac410f99675a3e1a2 --- .../android/systemui/recents/OverviewProxyService.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java index 80eea81a541df..72540ba5d3798 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java @@ -112,6 +112,7 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.Optional; +import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; import java.util.function.Supplier; @@ -445,6 +446,10 @@ public class OverviewProxyService implements CallbackController