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

Commit c467e627 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where the user would have no notifications on lockscreen

When pressing power twice the user could be stuck in a state with
the notifications hidden

Fixes: 184028145
Test: double tap power quickly (longer than camera) observe normal notifications
Change-Id: Ibd18d410dd16f2fcd125eee9d371c8a540fe28f1
parent b6521e0a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -393,6 +393,11 @@ class NotificationWakeUpCoordinator @Inject constructor(
    override fun onDozingChanged(isDozing: Boolean) {
        if (isDozing) {
            setNotificationsVisible(visible = false, animate = false, increaseSpeed = false)
        } else {
            // We only unset the flag once we fully went asleep. If the user interrupts the
            // animation in the middle, we have to abort the animation as well to make sure
            // the notifications are visible again.
            animatingScreenOff = false
        }
    }