diff options
author | 2021-02-12 12:07:40 -0800 | |
---|---|---|
committer | 2021-02-12 12:08:37 -0800 | |
commit | b77ef77d3cb488ba4f1844d0d26adfffbc9725ea (patch) | |
tree | 35ccf9edd62c9e258f72440c574b13f7fb45d429 | |
parent | f2e518533c387676b2fb09528acf178c8b11c679 (diff) |
Fix parsing in sensorprivacyservice
Test: reboot
Fixes: 178329882
Change-Id: I46e91e15a895816d5a261a806a4e4fe6d96c78a4
-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( |