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

Commit 13d137b0 authored by William Escande's avatar William Escande
Browse files

AutoOnFeature: Fix sleeping time

Bug: 323060869
Test: Manual | set up auto on testing after leaving the phone on for a
      while
Flag: 323060869
Change-Id: I8e8618ec2c501788fae6efe1eb0032d24431e859
parent ba94f613
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