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

Commit e03081f4 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Longer wake lock timeout

This isn't a definitive fix but should
make the symptoms less visible.

Bug: 71913808
Test: cover prox sensor, uncover it
Change-Id: I49976d5ba09d416e96cc5e623e49d55ecacf5567
parent 50228a64
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -807,7 +807,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
    @VisibleForTesting
    @VisibleForTesting
    protected WakeLock createWakeLock() {
    protected WakeLock createWakeLock() {
         return new DelayedWakeLock(getHandler(),
         return new DelayedWakeLock(getHandler(),
                WakeLock.createPartial(mContext, "Doze"));
                WakeLock.createPartial(mContext, "Scrims"));
    }
    }


    @Override
    @Override
+1 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,7 @@ import android.os.Handler;
 */
 */
public class DelayedWakeLock implements WakeLock {
public class DelayedWakeLock implements WakeLock {


    private static final long RELEASE_DELAY_MS = 120;
    private static final long RELEASE_DELAY_MS = 240;


    private final Handler mHandler;
    private final Handler mHandler;
    private final WakeLock mInner;
    private final WakeLock mInner;