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

Commit e9692bad authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Provider Model] Fix the condition about admin user"

parents 8a146e5c 0906d57b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class AccessPointControllerImpl

    public boolean canConfigMobileData() {
        return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS,
                UserHandle.of(mCurrentUser)) || mUserTracker.getUserInfo().isAdmin();
                UserHandle.of(mCurrentUser)) && mUserTracker.getUserInfo().isAdmin();
    }

    public void onUserSwitched(int newUserId) {