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

Commit b77ef77d authored by Evan Severson's avatar Evan Severson
Browse files

Fix parsing in sensorprivacyservice

Test: reboot
Fixes: 178329882
Change-Id: I46e91e15a895816d5a261a806a4e4fe6d96c78a4
parent f2e51853
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -568,7 +568,7 @@ public final class SensorPrivacyService extends SystemService {
                                    // User may no longer exist or isn't set
                                    // User may no longer exist or isn't set
                                    continue;
                                    continue;
                                }
                                }
                                int sensor = parser.getAttributeIndex(null, XML_ATTRIBUTE_SENSOR);
                                int sensor = parser.getAttributeInt(null, XML_ATTRIBUTE_SENSOR);
                                boolean isEnabled = parser.getAttributeBoolean(null,
                                boolean isEnabled = parser.getAttributeBoolean(null,
                                        XML_ATTRIBUTE_ENABLED);
                                        XML_ATTRIBUTE_ENABLED);
                                SparseBooleanArray userIndividualEnabled = individualEnabled.get(
                                SparseBooleanArray userIndividualEnabled = individualEnabled.get(