Fix parsing in sensorprivacyservice

Test: reboot
Fixes: 178329882
Change-Id: I46e91e15a895816d5a261a806a4e4fe6d96c78a4
This commit is contained in:
Evan Severson
2021-02-12 12:07:40 -08:00
parent f2e518533c
commit b77ef77d3c

View File

@@ -568,7 +568,7 @@ public final class SensorPrivacyService extends SystemService {
// User may no longer exist or isn't set
continue;
}
int sensor = parser.getAttributeIndex(null, XML_ATTRIBUTE_SENSOR);
int sensor = parser.getAttributeInt(null, XML_ATTRIBUTE_SENSOR);
boolean isEnabled = parser.getAttributeBoolean(null,
XML_ATTRIBUTE_ENABLED);
SparseBooleanArray userIndividualEnabled = individualEnabled.get(