Merge "Moves Adaptive Sleep's settings from Settings.System to Settings.Secure"
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user