diff options
| author | 2021-02-17 00:50:31 +0000 | |
|---|---|---|
| committer | 2021-02-17 00:50:31 +0000 | |
| commit | 4245e30aec8fd92e363a3d514aa8228eac04cba8 (patch) | |
| tree | 9d3725ffb943e21f29a3cd802fc7dafe4342aaa9 | |
| parent | b82bc5afc9a33b7ceba52b79c4ffaeec47569b12 (diff) | |
| parent | b77ef77d3cb488ba4f1844d0d26adfffbc9725ea (diff) | |
Merge "Fix parsing in sensorprivacyservice" into sc-dev
| -rw-r--r-- | services/core/java/com/android/server/SensorPrivacyService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/SensorPrivacyService.java b/services/core/java/com/android/server/SensorPrivacyService.java index 0aee78050929..7f0b9621bb36 100644 --- a/services/core/java/com/android/server/SensorPrivacyService.java +++ b/services/core/java/com/android/server/SensorPrivacyService.java @@ -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( |