Merge "Fix incorrect index usage in SensorPrivacyService init" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4a225373ec
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user