diff options
Diffstat (limited to 'src/com/android/settings/ResetNetwork.java')
-rw-r--r-- | src/com/android/settings/ResetNetwork.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/ResetNetwork.java b/src/com/android/settings/ResetNetwork.java index 2e57dc3fec..4f7747491b 100644 --- a/src/com/android/settings/ResetNetwork.java +++ b/src/com/android/settings/ResetNetwork.java @@ -192,9 +192,9 @@ public class ResetNetwork extends InstrumentedFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - if (!Process.myUserHandle().isOwner() - || UserManager.get(getActivity()).hasUserRestriction( - UserManager.DISALLOW_NETWORK_RESET)) { + final UserManager um = UserManager.get(getActivity()); + if (!um.isAdminUser() + || um.hasUserRestriction(UserManager.DISALLOW_NETWORK_RESET)) { return inflater.inflate(R.layout.network_reset_disallowed_screen, null); } |