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

Commit 5322dae5 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Decreases likelihood of AoD flickering

The transition from display power modes isn't tightly coupled
to the AoD lifecycle. We rely on a timeout to show and hide
the sysui scrim. In this case we increased it.

Change-Id: I13a0d33205c9f904afced63f231176151aee15c4
Fixes: 64077859
Test: receive notificaition in AoD, observe.
parent 2d362d71
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -384,7 +384,7 @@ public class DozeScrimController {
            if (mDozeParameters.getAlwaysOn()) {
            if (mDozeParameters.getAlwaysOn()) {
                // Setting power states can happen after we push out the frame. Make sure we
                // Setting power states can happen after we push out the frame. Make sure we
                // stay fully opaque until the power state request reaches the lower levels.
                // stay fully opaque until the power state request reaches the lower levels.
                setDozeInFrontAlphaDelayed(mAodFrontScrimOpacity, 30);
                setDozeInFrontAlphaDelayed(mAodFrontScrimOpacity, 100);
            }
            }
        }
        }
    };
    };