summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2014-02-25 13:01:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-25 13:01:38 +0000
commite21c52a8c9ef27c348f784daa8ec384152c3264e (patch)
treef3a830421493265b9733289edf86afe564807813 /packages/SystemUI
parentf5a9ad1cd046439d8fe0eba883c35717a052943e (diff)
parent1a447535cef7e3739d5f763dfe13e568568b9789 (diff)
downloadframeworks_base-e21c52a8c9ef27c348f784daa8ec384152c3264e.zip
frameworks_base-e21c52a8c9ef27c348f784daa8ec384152c3264e.tar.gz
frameworks_base-e21c52a8c9ef27c348f784daa8ec384152c3264e.tar.bz2
Merge "Hide managed profiles from user switchers."
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
index 4d7ff5e..bcb818a 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
@@ -312,7 +312,7 @@ class QuickSettings {
public void onClick(View v) {
collapsePanels();
final UserManager um = UserManager.get(mContext);
- if (um.getUsers(true).size() > 1) {
+ if (um.isUserSwitcherEnabled()) {
// Since keyguard and systemui were merged into the same process to save
// memory, they share the same Looper and graphics context. As a result,
// there's no way to allow concurrent animation while keyguard inflates.