AquaMail Forum

English - Android => Bug reports => Topic started by: Yury on December 06, 2014, 11:28:24 pm

Title: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 06, 2014, 11:28:24 pm
Костя,

My Nexus 5 got upgraded to Lollipop recently and ever since the way the message text is displayed is weird. Font is too small, sometimes the right margin is in the middle of the screen.

Also, sometimes, the message is not displayed completely, just cuts off in the middle. Reopening the message usually fixes it. Never seen is prior to the update.

Thanks,
Yury
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:03:54 am
Here you go. Interestingly, zooming with power buttons only moves the right margin with no font increase. Happens in portrait mode only, landscape seems OK.

Its for a Fastmail account and a gmail account, both via IMAP.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:12:56 am
If you wish I could forward that email to you, just let me know the address.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:22:48 am
No. Its a standard vBulletin notification, looks like text-only.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:24:03 am
Also, how come it does not do that in landscape?
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:33:44 am
No. Its a standard vBulletin notification, looks like text-only.
Are you facing this issue with "normal" text messages?


Just tried a simple message, works OK. Hiwevert, I do get this issue in my gmail account with emails that appear to contain text only. I can't tell though if those are in fact HTML messages.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:41:12 am
Install last build version, and use "Material design" theme please, to check

Same behavior with 1.5.1-25.4-dev9.2
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 12:48:58 am
Fastmail and gmail. Both accounts have this issue.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 01:15:45 am
Actually, not quite. In those messages I sent you the volume zoom still does not change font size while in portrait mode. In other messages it does. Initial sizing seems OK in the latest build.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 01:22:15 am
Strictly speaking yes.

However, I do find that the flowing algorithm could be a bit better. A long line with no white spaces is split so that there is a bit of space on the right in lines that are regular english delimited text. But this is not a major issue and quite likely was like this before.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 01:29:53 am
Actually, also, volume zoom is still working oddly in portrait. See attached, I opened a message and zoomed once.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 07, 2014, 05:10:39 pm
Reflow, text sizing, actual layout -- are all handled by code inside Android.

Called WebView, it got a major update in 4.4 (and was very unstable and weird in general) and in 5.0, it got a major update again.

Out of my control. Just like status bar icons now (5.0) being forced to white.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 05:15:00 pm
But the status icon colors are fine with the Google Play version?
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 07, 2014, 05:21:37 pm
Nope. Paris Geek posted screenshots here under -dev9.2 -- they're forced to white in the status bar area (when not expanded).
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 05:32:35 pm
A version installed from Google Play (not the Dev build) does colors well. That's what I meant.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 07, 2014, 05:39:38 pm
The version in Play (1.5.0.1) isn't marked as "compatible with Android 5.0" -- and 1.5.1 is... So maybe that explains it.

I do need the "compatible with 5.0" thing (targetSdkVersion = 21) for other things -- without it, HTML messages always load fully zoomed out... and some smaller things (status bar color).

Google likes keeping developers busy :)
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 08:24:13 pm
It would be sad to see the color notifications go, it's one of the good features that I have not seen in other apps...
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 10:04:09 pm
Костя

I am trying out CloudMagic, and they have no issues flowing the same messages. Attaching screenshot for comarission.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 07, 2014, 11:01:00 pm
Well, I don't know what to tell you....

You, yourself, saw something change in how messages are rendered -- same AquaMail version -- after the device updated to Android 5.0.

From my perspective, that's exactly what happened. A change in how the system code works (there are other changes, too... it's a whole new OS version, after all).

On the other hand, I'm not seeing any difference on my Nexus 5 -- at least nothing that would really stick out.

I just tried a few plain text messages, and they all go all the way to the right edge when opened. When I change font size (volume keys), there is reflow, also going all the way to the right edge.

Does your message have anything beyond what's visible (if you scroll down) -- some long URL, anything that would give it the larger width?

Oh, do you happen to have "auto-fit" enabled (under Message view)?
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 07, 2014, 11:24:17 pm
Yes, autofit is on.

These messages do have either a long URL or in some cases a path.

CloudMagic and other clients I tried, split these lines differently so the right margin is kept close to the right edge of the screen. I.e. the algorithm seems different. I do not know how they do it in terms if api, but it is pretty consistent across CloidMagic, BlueMail and couple other clients I tried.
Their split logic cuts such lines not on a delimiter/whitespace but indiscriminately to keep the right margin consistent with other lines.

I.can forward you an offending email..
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 07, 2014, 11:47:14 pm
Ah, ok. So it's always links, huh? And they always wrap as if they were simple text (I mean in Cloud Magic, etc)?

That's something I could try to adjust when converting from text/plain to text/html.

Currently I add "whitespace" characters at certain characters, but I could set a "wrap" CSS properly on them as well.

And this explains how it's related to Android 5.0 -- it has a new WebView (fresh copy of the Chrome rendering engine), and this may be one of the changes there.

Yes, please forward me a sample message -- either as an attachment (.eml), in a desktop mail app or web mail -- or "View source" and the exact original message to a file, and again, send as an attachment.

This is so I have *exactly* what the app works with.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 08, 2014, 12:22:55 am
Pm you email address?
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 08, 2014, 12:44:10 am
Sent you a couple.

BTW, I don't think it's always links. I do have an email with a long path abc/cde/xyz that also does it. Can't forward it to you due to sensitive content.

Anyhow, thanks for looking into this. If you want me to try out a new build, let me know.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 08, 2014, 02:50:14 am
Agree -- it's probably any text, where prior to 5.0 WebView (Chromium HTML engine) would break on more (kinds of) characters than in 5.0.

I did get your samples and will take a look.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: mikeone on December 12, 2014, 01:02:06 am
Agree -- it's probably any text, where prior to 5.0 WebView (Chromium HTML engine) would break on more (kinds of) characters than in 5.0.

I did get your samples and will take a look.

Kostya,  it seems that there is a similar issue even with Android 4.4.4...?

Option  "Auto-fit " enabled.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Yury on December 12, 2014, 07:43:29 am
Kostya, thanks a million, I got the update today, works well. The app is much easier to use now.
Title: Re: Something is wrong with text sizing/reflow in Lollipop
Post by: Kostya Vasilyev on December 12, 2014, 03:03:56 pm
Excellent. And thank you for having brought it up -- there were many others who we're quite happy with how things were.