Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't flicker avatar-image in MainTabBar (IOS-238) #1299

Merged
merged 4 commits into from
May 22, 2024

Conversation

zeitschlag
Copy link
Contributor

@zeitschlag zeitschlag commented May 21, 2024

Every time, the account gets updated, the avatarURL is updated as well. But not only new image was set. Before setting the image, the button-image was reset to the placeholder first. After that, the downloaded image was applied.

Now we don't reset the image to the placeholder, but set the placeholder once.
Also: Cleanup.

@zeitschlag zeitschlag marked this pull request as ready for review May 21, 2024 16:14
@zeitschlag zeitschlag self-assigned this May 21, 2024
@zeitschlag zeitschlag requested a review from kimar May 21, 2024 16:14
@zeitschlag zeitschlag changed the title Don't flicker (IOS-238) Don't flicker avatar-image in MainTabBar (IOS-238) May 21, 2024
Copy link
Contributor

@kimar kimar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, great work! 👍 Much better now :-)

I noticed that, when I don't have an avatar, the default one still has a very minimal flickering when returning from a user profile. But I don't consider this a blocker in any way.

@kimar kimar merged commit 068da20 into develop May 22, 2024
2 checks passed
@kimar kimar deleted the ios-238-avatar-flicker branch May 22, 2024 07:14
@zeitschlag zeitschlag added this to the 2024.5 milestone May 22, 2024
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.

2 participants