Merge "Moves Adaptive Sleep's settings from Settings.System to Settings.Secure"

This commit is contained in:
Yi Jiang
2020-02-12 00:48:59 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
*/
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.content.Context;

View File

@@ -129,7 +129,7 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable {
*/
private boolean isTurnedOn() {
return Settings.System.getInt(
mContext.getContentResolver(), Settings.System.ADAPTIVE_SLEEP, 0) != 0;
mContext.getContentResolver(), Settings.Secure.ADAPTIVE_SLEEP, 0) != 0;
}
/**