Author Topic: Something is wrong with text sizing/reflow in Lollipop  (Read 20021 times)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #15 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 :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #16 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...

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #17 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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #18 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)?
« Last Edit: December 07, 2014, 11:11:16 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #19 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..

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #20 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.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #21 on: December 08, 2014, 12:22:55 am »
Pm you email address?

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #22 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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #23 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.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #24 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.
« Last Edit: December 15, 2014, 09:54:49 am by mikeone »

Yury

  • Newbie
  • *
  • Posts: 35
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #25 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.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Something is wrong with text sizing/reflow in Lollipop
« Reply #26 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.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/