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

Commit 356b65ee 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:...

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

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

Change-Id: I48329287ba283aace28ba066b8628cf4b7130368
parents 4a82158b c1fddd19
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);
                    }