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

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

Check for forceVisible when updating from a new status event

In the case where we get a status event update that doesn't trigger a
new scheduled event, we also need to check to see if the forceVisible
bit flipped, otherwise we will fail to show the persistent dot.

Bug: 197025130
Test: manual
Change-Id: I261bce40e0a4525e7d1302a983c5fb4622ddc6e2
parent 200905ed
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -114,6 +114,10 @@ class SystemStatusAnimationScheduler @Inject constructor(
                Log.d(TAG, "updating current event from: $event")
            }
            scheduledEvent?.updateFromEvent(event)
            if (event.forceVisible) {
                hasPersistentDot = true
                notifyTransitionToPersistentDot()
            }
        } else {
            if (DEBUG) {
                Log.d(TAG, "ignoring event $event")
@@ -154,6 +158,7 @@ class SystemStatusAnimationScheduler @Inject constructor(
        // If animations are turned off, we'll transition directly to the dot
        if (!event.showAnimation && event.forceVisible) {
            notifyTransitionToPersistentDot()
            scheduledEvent = null
            return
        }