Merge "Update mic/camera toggles api" into sc-dev

This commit is contained in:
Evan Severson
2021-04-22 16:38:35 +00:00
committed by Android (Google) Code Review
5 changed files with 7 additions and 8 deletions

View File

@@ -111,9 +111,7 @@ public class ScreenTimeoutSettings extends RadioButtonPickerFragment implements
mPrivacyPreference.setLayoutResource(R.layout.preference_footer);
mPrivacyManager = SensorPrivacyManager.getInstance(context);
mPrivacyManager.addSensorPrivacyListener(CAMERA,
enabled -> {
mAdaptiveSleepController.updatePreference();
});
(sensor, enabled) -> mAdaptiveSleepController.updatePreference());
}
@Override