Merge "Fix ContextualAdaptiveSleepSliceTest" into rvc-dev am: a4e3d5ef8b
Change-Id: Idd8c529261fd853b5aba28f88139008ea489aa40
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user