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

fix flicker of subject line in MessageHeader #1416

Merged
merged 1 commit into from Jun 28, 2016
Merged

Conversation

Valodim
Copy link
Contributor

@Valodim Valodim commented May 28, 2016

MessageHeader rendered the subject line by default, and only after
MessageTitleView decided it was large enough to display the entire
subject line, the subject line was hidden again. This caused a noticable
flicker in vertical size during message rendering while navigating with
next/previous message buttons.

This commit flips the logic, only displaying the subject view once the
title view finds it can't display it all.

@@ -275,7 +274,7 @@ public void populate(final Message message, final Account account) throws Messag
* or the device is rotated.
Copy link
Member

Choose a reason for hiding this comment

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

Comment needs to be updated or removed.

MessageHeader rendered the subject line by default, and only after
MessageTitleView decided it was large enough to display the entire
subject line, the subject line was hidden again. This caused a noticable
flicker during message rendering while navigating with next/previous
message buttons.

This commit flips the logic, only displaying the subject view once the
title view finds it can't display it all.
@cketti cketti merged commit dca9d20 into master Jun 28, 2016
@cketti cketti deleted the messageview-fix-flicker branch June 28, 2016 02:02
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.

None yet

2 participants