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

Commit b6d298a4 authored by Evan Laird's avatar Evan Laird
Browse files

Don't transition to ongoing privacy dot if still animating

If privacy events come in very fast (during the debounce time), we
sometimes would transition to showing the ongoing privacy event dot
before the animation finished.

Test: manual
Fixes: 222554701
Change-Id: I270e0180655eb2a6254a17ce6f18f0fd4a77b081
parent 3900e288
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -116,8 +116,11 @@ class SystemStatusAnimationScheduler @Inject constructor(
            scheduledEvent?.updateFromEvent(event)
            if (event.forceVisible) {
                hasPersistentDot = true
                // If we missed the chance to show the persistent dot, do it now
                if (animationState == IDLE) {
                    notifyTransitionToPersistentDot()
                }
            }
        } else {
            if (DEBUG) {
                Log.d(TAG, "ignoring event $event")