Moves Adaptive Sleep's settings from Settings.System to Settings.Secure
Test: atest AdaptiveSleepPreferenceControllerTest Test: atest ContextualAdaptiveSleepSliceTest Bug: 139319542 Change-Id: I9923dc3b6995c89efc1c775ccd2f134af87fc202
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.android.settings.display;
|
package com.android.settings.display;
|
||||||
|
|
||||||
import static android.provider.Settings.System.ADAPTIVE_SLEEP;
|
import static android.provider.Settings.Secure.ADAPTIVE_SLEEP;
|
||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@@ -129,7 +129,7 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable {
|
|||||||
*/
|
*/
|
||||||
private boolean isTurnedOn() {
|
private boolean isTurnedOn() {
|
||||||
return Settings.System.getInt(
|
return Settings.System.getInt(
|
||||||
mContext.getContentResolver(), Settings.System.ADAPTIVE_SLEEP, 0) != 0;
|
mContext.getContentResolver(), Settings.Secure.ADAPTIVE_SLEEP, 0) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user