Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33384ed6 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Attempt to fix bug on devices where multi-user support is disabled."...

Merge "Attempt to fix bug on devices where multi-user support is disabled." into jb-mr1-lockscreen-dev
parents 0ca97233 26e6c2e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1119,6 +1119,10 @@ public class KeyguardHostView extends KeyguardViewBase {
    }

    private void enableUserSelectorIfNecessary() {
        if (!UserManager.supportsMultipleUsers()) {
            return; // device doesn't support multi-user mode
        }

        // if there are multiple users, we need to enable to multi-user switcher
        UserManager mUm = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
        List<UserInfo> users = mUm.getUsers(true);