diff options
| author | Amith Yamasani <yamasani@google.com> | 2014-04-23 23:33:04 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-23 23:33:05 +0000 |
| commit | 5451c559ecd3ac45e3d4dfc5838cb1996404116d (patch) | |
| tree | 31f445e4f76c0546b84187e78cd0c495f4fac52c /packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java | |
| parent | 3c37bcee9b241d9ee5c420e9e16dca236e8a0304 (diff) | |
| parent | 921b71e95f53bb07980ef22b8b6a75ea20490ccd (diff) | |
| download | frameworks_base-5451c559ecd3ac45e3d4dfc5838cb1996404116d.zip frameworks_base-5451c559ecd3ac45e3d4dfc5838cb1996404116d.tar.gz frameworks_base-5451c559ecd3ac45e3d4dfc5838cb1996404116d.tar.bz2 | |
Merge "Don't show managed profiles in the user switcher"
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java')
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java b/packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java index 87ebcc1..d67e7cb 100644 --- a/packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java +++ b/packages/SystemUI/src/com/android/systemui/settings/UserSwitcherHostView.java @@ -38,6 +38,7 @@ import android.widget.ListView; import android.widget.TextView; import java.util.ArrayList; +import java.util.List; /** * A quick and dirty view to show a user switcher. @@ -118,7 +119,12 @@ public class UserSwitcherHostView extends FrameLayout implements ListView.OnItem public void refreshUsers() { mUserInfo.clear(); - mUserInfo.addAll(mUserManager.getUsers(true)); + List<UserInfo> users = mUserManager.getUsers(true); + for (UserInfo user : users) { + if (!user.isManagedProfile()) { + mUserInfo.add(user); + } + } mAdapter.notifyDataSetChanged(); } |
