diff options
| author | 2021-08-11 11:37:01 +0800 | |
|---|---|---|
| committer | 2021-08-24 00:54:14 +0800 | |
| commit | fb37824e0632cfe574e7445438ed98630fe90482 (patch) | |
| tree | ff5f8551b5cd84c437e376c6cb2d70536fd82dda | |
| parent | 0cf7dc970fe18a528cd5a2d397522c26296e53e9 (diff) | |
[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
Merged-In: I566dfa7585ade8fcba53a6a98213776e156267bd
(cherry picked from commit 0906d57bd0680d365f7dafa47f88985bae09e2f6)
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 2ab0e5903323..6d6320e6962d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/AccessPointControllerImpl.java @@ -123,7 +123,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) { |