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:
Yi Jiang
2020-01-27 16:47:10 -08:00
committed by Alex Salo
parent 2ad3a3e0ab
commit 63f2c5963a
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;
} }
/** /**