Hides Screen Attention setting when AttentionService isn't installed.
Bug: 191696609 Test: make RunSettingsRoboTests Change-Id: I5a38b023db91202801a8a3e975f562ddcfe6696e
This commit is contained in:
@@ -313,8 +313,7 @@ public class ScreenTimeoutSettings extends RadioButtonPickerFragment implements
|
||||
}
|
||||
|
||||
private static boolean isScreenAttentionAvailable(Context context) {
|
||||
return context.getResources().getBoolean(
|
||||
com.android.internal.R.bool.config_adaptive_sleep_available);
|
||||
return AdaptiveSleepPreferenceController.isAdaptiveSleepSupported(context);
|
||||
}
|
||||
|
||||
private static class TimeoutCandidateInfo extends CandidateInfo {
|
||||
|
Reference in New Issue
Block a user