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

Commit bb8c33bc authored by Evan Severson's avatar Evan Severson Committed by Automerger Merge Worker
Browse files

Merge "Fix incorrect index usage in SensorPrivacyService init" into sc-dev am: 4a225373

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14353920

Change-Id: I8e8395b3fab7482ecf68eb4467b883fa1474e666
parents 6587fb22 4a225373
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);
                    }