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

Commit 4d9e4316 authored by Alex Salo's avatar Alex Salo
Browse files

Initialize wakefulness state to AWAKE upon boot

Device always boots into AWAKE state, but onWakefulnessChange is not
called until after the screen turns off.

Test: manually with logging
Bug: 111939367

Change-Id: If74464c400f7fa0f904178268b9108eb9e7f9dba
parent a0d18b60
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -123,6 +123,9 @@ public class AttentionDetector {
    public AttentionDetector(Runnable onUserAttention, Object lock) {
        mOnUserAttention = onUserAttention;
        mLock = lock;

        // Device starts with an awake state upon boot.
        mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE;
    }

    public void systemReady(Context context) {