summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Steve Elliott <steell@google.com> 2023-12-14 13:43:15 -0500
committer Steve Elliott <steell@google.com> 2023-12-18 14:55:55 +0000
commitf68c0a15c1c120f401c824b93952bc8d1c3cbf13 (patch)
tree0b8ca3b15a548c2504d418e0682faee85592bd33 /libs/androidfw/StringPool.cpp
parent4944756cac68c0eafbb7e9dc76b05f229c90de31 (diff)
Fix NotifKeyguardViewStateRepo#isPulseExpanding
We were treating the NotificationWakeUpCoordinator#onPulseExpansionChanged callback as a notification that expansion has started or stopped, when in reality it was a notification that the actual expansion progress has changed; the boolean parameter does not reflect that the expansion is occurring, but whether or not the _fact_ that an expansion is occuring has changed. The fix is as follows: override fun onPulseExpansionChanged(expandingChanged: Boolean) { // Before trySend(expandingChanged) // After if (expandingChanged) trySend(wakeUpCoordinator.isPulseExpanding) } Rather than just fix this in the NotificationsKeyguardViewStateRepository, the API of `onPulseExpansionChanged(expandingChanged: Boolean)` is replaced with the more-idiomatic and (ideally) less error-prone `onPulseExpandedChanged(isPulseExpanded: Boolean)`, whose boolean argument specifies the new value of NotificationWakeUpCoordinator.isPulseExpanding() Flag: ACONFIG com.android.systemui.notifications_icon_container_refactor DEVELOPMENT Test: atest SystemUITests Fixes: 316116909 Change-Id: I8ef78ffd69de3589d1b948df5034d44f51485f7f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions