Ignore dying users when testing for number of users on device. (Bug 7332248)

Change-Id: Id5cc0aacba716db5c2306fd72a51ac7cffc4149e
This commit is contained in:
Winson Chung
2012-10-11 12:48:36 -07:00
parent e1f4ebf559
commit ada86cba3c

View File

@@ -291,7 +291,7 @@ class QuickSettings {
mBar.collapseAllPanels(true);
final UserManager um =
(UserManager) mContext.getSystemService(Context.USER_SERVICE);
if (um.getUsers().size() > 1) {
if (um.getUsers(true).size() > 1) {
try {
WindowManagerGlobal.getWindowManagerService().lockNow(
LockPatternUtils.USER_SWITCH_LOCK_OPTIONS);