Merge "Show user switcher if guest is enabled"

This commit is contained in:
Amith Yamasani
2014-06-13 01:14:27 +00:00
committed by Android (Google) Code Review

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;
}
/**