From 0906d57bd0680d365f7dafa47f88985bae09e2f6 Mon Sep 17 00:00:00 2001 From: Zoey Chen Date: Wed, 11 Aug 2021 11:37:01 +0800 Subject: [PATCH] [Provider Model] Fix the condition about admin user Only the user is admin AND the admin is allowed to config mobile network Bug: 196020201 Test: manual Change-Id: I566dfa7585ade8fcba53a6a98213776e156267bd --- .../systemui/statusbar/policy/AccessPointControllerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java index 0c000437520c6..f54bb6882ed08 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java @@ -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) {