Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6950877b authored by Yi-Ling Chuang's avatar Yi-Ling Chuang
Browse files

Fix ContextualAdaptiveSleepSliceTest

ADAPTIVE_SLEEP has been moved from Settings.System to Settings.Secure
but the main logic hasn't synced with the change which leads to the
failure.

Fixes: 139319542
Test: robotests
Change-Id: I56f58cc3da5a4034e2bf2ed5a63ae3bc2fec2a21
parent 750ff898
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ public class ContextualAdaptiveSleepSlice implements CustomSliceable {
     * @return {@code true} if the feature is turned on for the device, otherwise {@code false}
     */
    private boolean isTurnedOn() {
        return Settings.System.getInt(
        return Settings.Secure.getInt(
                mContext.getContentResolver(), Settings.Secure.ADAPTIVE_SLEEP, 0) != 0;
    }