From b99f864d3ffb0785ec9581b0f8d6d9af00e060c6 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 10 Oct 2012 21:41:12 -0700 Subject: Fix crash in Settings for secondary users Bug: 7328485 Change-Id: If766d1f28f48fb1853ea64c2b2a9294df9bcf22b --- src/com/android/settings/Settings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.1