Show user switcher if guest is enabled

even if there's only one user.

Bug: 15549064
Change-Id: Ib9bc5e6cdc6f2655e44ec0a10a701dd39389e648
This commit is contained in:
Amith Yamasani
2014-06-12 18:12:38 -07:00
parent 45c9ef2021
commit a596ff87cd

View File

@@ -882,7 +882,9 @@ public class UserManager {
++switchableUserCount;
}
}
return switchableUserCount > 1;
final boolean guestEnabled = Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.GUEST_USER_ENABLED, 0) == 1;
return switchableUserCount > 1 || guestEnabled;
}
/**