summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2024-02-01 15:52:13 -0500
committer Fabián Kozynski <kozynski@google.com> 2024-02-01 15:52:13 -0500
commit0942153f1f617c0ccfb7d5335c2159d4924ae135 (patch)
treec3cf53ec569ee5a8a47d9d62f56c08a85d3c6451 /api/api.go
parent3459cd0e5728c0f29d5c492f4e75a8592d35a8cc (diff)
Fix a newer race condition in QSIconViewImpl
If multiple changes of state are pushed into QSIconViewImpl, they will all schedule an icon change, and cancel the last animator, prompting the previous icon to be displayed. However, because setting an icon would prevent other scheduled icons to be applied, only the first one was applied. With this fix, we assign a transaction ID (long) to each icon that is scheduled to be applied. We only apply it at the end (or cancel) of the animation if no other icon has been applied or scheduled since. Test: atest QSIconViewImplTest_311121830 Fixes: 323125376 Flag: NONE Change-Id: I8fd5eef54b3bee034f8066bc5ce79117c6260008
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions