Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e084039d authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix incorrect reading of multichoice app restrictions

Clear the list of choices values before putting new ones in.

Bug: 17299310
Change-Id: I01051d1703adcbdd7d0b5fb4ee423404f98489e8
parent 0dedb722
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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