Updates screen attention preference at onStart().

Screen attention preference needs to be refreshed at onStart() so that
it get updated immediately once the camera permission is revoked/granted
for the screen attention feature.

Bug: 171019472
Test: manual + atest AdaptiveSleepPreferenceControllerTest

Change-Id: If9ac68c022f10ffefde61b035bbf38ee14c02180
This commit is contained in:
Yi Jiang
2020-10-16 15:25:08 -07:00
parent f5d1841c9d
commit 0bbc758197
2 changed files with 9 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ public class ScreenTimeoutSettings extends RadioButtonPickerFragment implements
public void onStart() {
super.onStart();
mAdaptiveSleepPermissionController.updateVisibility();
mAdaptiveSleepController.updatePreference();
}
@Override