summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/settings/Settings.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 4314f2d..2d16262 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -458,7 +458,8 @@ public class Settings extends PreferenceActivity
}
}
- if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
+ if (target.get(i) == header
+ && UserHandle.MU_ENABLED && UserHandle.myUserId() != 0
&& !ArrayUtils.contains(SETTINGS_FOR_RESTRICTED, id)) {
target.remove(i);
}