Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zalenski
Copy link
Collaborator

@zalenski zalenski commented Sep 14, 2024

The helper method paintRecentBackground() was re-checking ContestUtil.isRecent(), but the contest used might be updated concurrently, and in that case a white background was drawn with a null Color, causing white flashing. The helper function is only used to draw recent updates, so this renames the function to paintRecentResultBackground, and removes the extra check.

white flashing:
Screenshot 2024-09-14 at 23 23 41

The helper method paintRecentBackground() was re-checking ContestUtil.isRecent(),
but the contest used might be updated concurrently, and in that case a white background was drawn
with a null Color, causing white flashing. The helper function is only used to draw recent updates,
so this renames the function to paintRecentResultBackground, and removes the extra check.
@deboer-tim deboer-tim merged commit 1b79a8f into icpctools:main Sep 15, 2024
@zalenski zalenski deleted the avoid-recent-white-flashing branch September 15, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants