Merge "Fix incorrect reading of multichoice app restrictions" into lmp-dev

This commit is contained in:
Amith Yamasani
2014-08-27 17:39:28 +00:00
committed by Android (Google) Code Review

View File

@@ -1576,6 +1576,7 @@ public class UserManagerService extends IUserManager.Stub {
String valType = parser.getAttributeValue(null, ATTR_VALUE_TYPE);
String multiple = parser.getAttributeValue(null, ATTR_MULTIPLE);
if (multiple != null) {
values.clear();
int count = Integer.parseInt(multiple);
while (count > 0 && (type = parser.next()) != XmlPullParser.END_DOCUMENT) {
if (type == XmlPullParser.START_TAG