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

Commit 01f40c28 authored by Tetiana Meronyk's avatar Tetiana Meronyk Committed by Android (Google) Code Review
Browse files

Merge "Disable multiuser toggle om COPE device and add explanation dialog" into main

parents 4e2fa570 80ae4b3c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -57,11 +57,10 @@ public class MultiUserSwitchBarController implements SwitchWidgetController.OnSw
            mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal
                    .checkIfRestrictionEnforced(mContext, UserManager.DISALLOW_USER_SWITCH,
                            UserHandle.myUserId()));

        } else if (mUserCapabilities.mDisallowAddUser) {
            onSwitchToggled(false);
            mSwitchBar.setDisabledByAdmin(RestrictedLockUtilsInternal
                    .checkIfRestrictionEnforced(mContext, UserManager.DISALLOW_ADD_USER,
                            UserHandle.myUserId()));
                    .checkIfAddUserDisallowed(mContext, UserHandle.myUserId()));
        } else {
            mSwitchBar.setEnabled(!mUserCapabilities.mDisallowSwitchUser
                    && !mUserCapabilities.mIsGuest && mUserCapabilities.isAdmin());