From 6947636a584595cc0ed9b5b08b2886941a0fac4f Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 13 Jul 2016 11:59:16 -0700 Subject: [PATCH] Make Recents button work in demo mode Create the UserSwitcherController object so that the broadcasts are properly handled. Change-Id: Iadf9588a4ddb7850f0d8ab2b49a0949fb4580893 Fixes: 30000641 --- .../com/android/systemui/statusbar/phone/PhoneStatusBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9bc5426d5bcb2..fb7afc59b276b 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -883,9 +883,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, mLightStatusBarController = new LightStatusBarController(mIconController, mBatteryController); mKeyguardMonitor = new KeyguardMonitor(mContext); + mUserSwitcherController = new UserSwitcherController(mContext, mKeyguardMonitor, + mHandler, this); if (UserManager.get(mContext).isUserSwitcherEnabled()) { - mUserSwitcherController = new UserSwitcherController(mContext, mKeyguardMonitor, - mHandler, this); createUserSwitcher(); }