From 1b1d346b3547809f410a62ec2cdbd3a6ff21127a Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Fri, 2 Mar 2018 11:43:38 -0800 Subject: [PATCH] Creating new user correctly connects to the system OverviewProxy When creating a new user, it creates a new OverviewServiceProxy which connects to launcher instead of the system user version. Since the new proxy does not have any callbacks connected to it, launcher cannot send any data to change systemui. Preventing the new proxy from connecting allows the original to connect. Test: manual, create new user, wait for connection, play with quick step Change-Id: I0838fe8294c7a3ee89062c0c9855caf5ab52482b Fixes: 74001992 --- .../android/systemui/OverviewProxyService.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 3c666e4b11cc8..041af0e471193 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -36,6 +36,7 @@ import android.view.SurfaceControl; import com.android.systemui.OverviewProxyService.OverviewProxyListener; import com.android.systemui.recents.events.EventBus; import com.android.systemui.recents.events.activity.DockedFirstAnimationFrameEvent; +import com.android.systemui.recents.misc.SystemServicesProxy; import com.android.systemui.shared.recents.IOverviewProxy; import com.android.systemui.shared.recents.ISystemUiProxy; import com.android.systemui.shared.system.GraphicBufferCompat; @@ -201,15 +202,18 @@ public class OverviewProxyService implements CallbackController