Merge "[Provider Model] Fix the condition about admin user"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e9692bad64
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user