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

Commit 26e6c2e4 authored by Jim Miller's avatar Jim Miller
Browse files

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

Bug 7437751

Change-Id: Iff9f6a5a91fb9dd69b7176a5febb1d6e158d90b6
parent 6249804e
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);