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

This commit is contained in:
TreeHugger Robot
2021-08-11 16:25:00 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {