Merge "Check for forceVisible when updating from a new status event" into sc-dev am: ce6e70884e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15605596

Change-Id: I6d16bbae5fb74781c2dcfbf8054b7a6418e96bca
This commit is contained in:
Nate Myren
2021-08-18 23:51:38 +00:00
committed by Automerger Merge Worker

View File

@@ -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
}