Fix crash in Settings for secondary users
Bug: 7328485 Change-Id: If766d1f28f48fb1853ea64c2b2a9294df9bcf22b
This commit is contained in:
@@ -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)) {
|
&& !ArrayUtils.contains(SETTINGS_FOR_RESTRICTED, id)) {
|
||||||
target.remove(i);
|
target.remove(i);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user