Settings user restriction changes: debugging features.

Replacing restriction pin with a user restriction for developer options.
Bug: 14081992

Change-Id: I9a71c256fbd20428b4bd2ae12939c9a50d7b5f11
This commit is contained in:
Julia Reynolds
2014-05-08 09:29:41 -04:00
parent d65928c558
commit 6c088cb221
3 changed files with 13 additions and 21 deletions

View File

@@ -1067,7 +1067,8 @@ public class SettingsActivity extends Activity
}
}
} else if (id == R.id.development_settings) {
if (!showDev) {
if (!showDev || um.hasUserRestriction(
UserManager.DISALLOW_DEBUGGING_FEATURES)) {
category.removeTile(n);
}
} else if (id == R.id.account_add) {