From ca822fa57aabc1fed384ae128902504399bb48ba Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 14 Jul 2016 16:27:05 +0800 Subject: [PATCH] Notify user switch event to NetworkController When switching user NetworkController is not notified, as a result AccessPointController won't be notified, still memorize the previous userId which causes an unexpected AP list presentation on Wi-Fi Tile. Improves d8c3ca43163427a75c8b70114096238177f97af0. Bug:31235488 Change-Id: I171343dc2bcf51df26622244c4f81c48f3736faa --- .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index f5b4b6398fadd..a745f81716e9c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3468,6 +3468,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mSecurityController != null) { mSecurityController.onUserSwitched(mCurrentUserId); } + if (mNetworkController != null) { + mNetworkController.onUserSwitched(mCurrentUserId); + } } private void resetUserSetupObserver() {