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

#3 Cherry pick fix rich text not work on android (#2475) #2795

Conversation

Copy link

This PR has been deployed to https://linagora.github.io/tmail-flutter/2795.

@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from 157ad14 to fc188bd Compare June 13, 2024 09:27
@dab246 dab246 changed the base branch from v0.11.3-patch4-dev-features to refactor June 13, 2024 09:27
@dab246
Copy link
Member Author

dab246 commented Jun 13, 2024

Rebase to the refactor branch is complete

@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from fc188bd to 85c5b15 Compare June 20, 2024 09:32
@hoangdat hoangdat changed the base branch from refactor to combine_cherry_2_cherry_3 June 24, 2024 04:45
@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from 85c5b15 to 6425d33 Compare June 24, 2024 06:13
@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from 6425d33 to 15f22be Compare June 24, 2024 10:03
@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from 15f22be to efa76f2 Compare June 24, 2024 10:05
@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from efa76f2 to fa45406 Compare June 25, 2024 06:48
@hoangdat
Copy link
Member

hoangdat commented Jun 25, 2024

  • still have the problem of focus when we change focus from recipient fields to body editor
    when we change focus to body editor, we still see that keyboard up and down, especially, sometimes down and never up again. How to prevent keyboard up and down when we move focus from recipient fields to editor?
Screenrecorder-2024-06-25-09-35-55-238.mp4

@dab246
Copy link
Member Author

dab246 commented Jun 25, 2024

  • still have the problem of focus when we change focus from recipient fields to body editor

Screenrecorder-2024-06-25-09-35-55-238.mp4

What is the problem here?

@hoangdat
Copy link
Member

What is the problem here?

when we change focus to body editor, we still see that keyboard up and down, especially, sometimes down and never up again. How to prevent keyboard up and down when we move focus from recipient fields to editor?

@hoangdat
Copy link
Member

hoangdat commented Jun 25, 2024

  • sometime toolbar is not showed exactly selected option (please check video below from 1:20)
Screenrecorder-2024-06-25-09-49-40-272.mp4

@dab246
Copy link
Member Author

dab246 commented Jun 25, 2024

  • sometime toolbar is not showed exactly selected option (please check video below from 1:20)

Screenrecorder-2024-06-25-09-49-40-272.mp4

Can't see exactly what the error is here. Please rewind the video for a few seconds to see the specific error.

@hoangdat
Copy link
Member

Can't see exactly what the error is here.

Please play video around 1:13, we also have B, I, U, S in editor, but toolbar only show I, U, S

@tddang-linagora
Copy link
Contributor

tddang-linagora commented Jun 25, 2024

Tested on Android

  • Bold
  • Italic
  • Strikethrough
  • Underlined
  • Text color
  • Background color

@hoangdat
Copy link
Member

  • Chrome

@dab246
Copy link
Member Author

dab246 commented Jun 26, 2024

  • still have the problem of focus when we change focus from recipient fields to body editor
    when we change focus to body editor, we still see that keyboard up and down, especially, sometimes down and never up again. How to prevent keyboard up and down when we move focus from recipient fields to editor?

Screenrecorder-2024-06-25-09-35-55-238.mp4

Only happens on Android. iOS works fine. On Android, if you persist the soft keyboard, the caret cursor will be duplicated in the WebView and TextField. Therefore, as a workaround, we can only reopen the soft keyboard when moving focus from TextField to WebView

@dab246
Copy link
Member Author

dab246 commented Jun 26, 2024

  • sometime toolbar is not showed exactly selected option (please check video below from 1:20)

Screenrecorder-2024-06-25-09-49-40-272.mp4

Fixed.

@tddang-linagora
Copy link
Contributor

Tested on iOS

  • Bold
  • Italic
  • Strikethrough
  • Underlined
  • Text color
  • Background color

@hoangdat
Copy link
Member

  • Compromised solution: to prevent double cursor, take the disadvantage of blink blink of keyboard

@hoangdat
Copy link
Member

Fixed

Still have problem with Bold in my Android

@tddang-linagora
Copy link
Contributor

Text format randomly turned off when typing text on start of new line

Ipad air 5th gen - debug mode - preprod env

Screen.Recording.2024-06-28.at.15.15.33.mov

@dab246
Copy link
Member Author

dab246 commented Jun 29, 2024

Fixed

Still have problem with Bold in my Android

Root cause

  • Sometimes WebView auto convert font-weight: bold to font-weight: 700.

Screenshot 2024-06-29 at 17 13 13

Resolved

demo.webm

@dab246
Copy link
Member Author

dab246 commented Jun 29, 2024

Text format randomly turned off when typing text on start of new line

Ipad air 5th gen - debug mode - preprod env

Screen.Recording.2024-06-28.at.15.15.33.mov

Reproduce

  • Select underline style to enable it
  • Select strikeThrough style to enable it
  • Enter some text. Now underline & strikeThrough are applied to text
  • Select again underline style to disable it
  • Enter some text. Now underline & strikeThrough do not apply to text

=> Turn on both (unlineline and strikeThrough). When you turn off one of them, both will turn off.

Analyze root cause

  • This error only occurs on safari webkit (iOS, Desktop, Browser). It's related to underline and strikeThrough css style incompatibility on webkit. With safari requires adding -webkit-text-decoration.

Screenshot 2024-06-29 at 16 32 20

  • Some other mail clients also have similar problems as GMail or Apple Mail
Screen.Recording.2024-06-29.at.16.27.45.mov
RPReplay_Final1719653402.MP4
  • Currently there is no solution offered to solve this problem.

Conclusion

  • Android (Mobile/Tablet): Work fine
demo-android.webm
  • IOS (Mobile/iPad): Not working

@dab246 dab246 force-pushed the cherry-pick-tf-2475-font-do-not-work-in-mobile branch from 7d85402 to bd49100 Compare July 1, 2024 08:00
@hoangdat hoangdat merged commit 0ab8b07 into combine_cherry_2_cherry_3 Jul 1, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants