Merge "Fix ContextualAdaptiveSleepSliceTest" into rvc-dev am: a4e3d5ef8b am: 17c6211285 am: 3baeb593c7

Change-Id: I42a007cfacde7d1ae1fc91220866afe8fd13538b
This commit is contained in:
TreeHugger Robot
2020-03-21 03:56:12 +00:00
committed by Automerger Merge Worker

View File

@@ -129,7 +129,7 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable {
* @return {@code true} if the feature is turned on for the device, otherwise {@code false} * @return {@code true} if the feature is turned on for the device, otherwise {@code false}
*/ */
private boolean isTurnedOn() { private boolean isTurnedOn() {
return Settings.System.getInt( return Settings.Secure.getInt(
mContext.getContentResolver(), Settings.Secure.ADAPTIVE_SLEEP, 0) != 0; mContext.getContentResolver(), Settings.Secure.ADAPTIVE_SLEEP, 0) != 0;
} }