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

Commit 39759668 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "AutoOnFeature: Fix sleeping time" into main am: ee4b0df2

parents 8fa9b6cb ee4b0df2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.IntentFilter
import android.database.ContentObserver
import android.os.Handler
import android.os.Looper
import android.os.SystemClock
import android.provider.Settings
import androidx.annotation.VisibleForTesting
import com.android.modules.expresslog.Counter
@@ -171,7 +172,7 @@ private constructor(
        writeDateToStorage(target, context.contentResolver)
        alarmManager.set(
            AlarmManager.ELAPSED_REALTIME,
            timeToSleep.inWholeMilliseconds,
            SystemClock.elapsedRealtime() + timeToSleep.inWholeMilliseconds,
            "Bluetooth AutoOnFeature",
            this,
            handler