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

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

Fix incorrect index usage in SensorPrivacyService init

TODO: Add test coverage for service init

Change-Id: I0ce26eda21035a34f1cb09a71c94ee84301aef84
Test: None yet
Bug: 186578100
parent 87d9162e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ public final class SensorPrivacyService extends SystemService {
                    SparseBooleanArray userIndividualEnabled =
                            mIndividualEnabled.valueAt(i);
                    for (int j = 0; j < userIndividualEnabled.size(); j++) {
                        int sensor = userIndividualEnabled.keyAt(i);
                        int sensor = userIndividualEnabled.keyAt(j);
                        boolean enabled = userIndividualEnabled.valueAt(j);
                        setUserRestriction(userId, sensor, enabled);
                    }