History log of /packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/HtmlTree.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
77b4c2c31d7601665c337ce5cbc9d84fb9332be8 20-May-2014 Jin Cao <jinyan@google.com> Minimum html support using Html class (no ol/ul)

Support basic html in ComposeActivity using Html and HtmlTree class.

- Extended HtmlTree to take in any arbitrary html -> object converter
so we can use it to convert html to spanned as well as plaintext.
- Added custom SpannedConverter to feed into HtmlTree.
- Added async task to load Utils.htmlToSpan in the background.
- Moved ComposeActivity#sendOrSaveInternal to a handler thread in
case Utils.spanToHtml takes a long time.

Note that we only support a subset of the html tags. To see the full
list of tags we currently support, refer to HtmlUtils#SpannedConverter.

Performance:
About 3x faster than using Html.fromHtml (yay!).
Performance should not be an issue for >99% of the users.

b/7406122

Change-Id: I484d7fc7d2f36c4724d9e4cb90fa1d65eadcb903
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/HtmlTree.java
1bdbfefe4b144c7b031a1d9242a0fa061a0ae6b5 02-Aug-2013 Scott Kennedy <skennedy@google.com> Change the package name on our HTML parser

So it doesn't conflict in IDE builds, with the one imported from
another project.

Change-Id: I6b7d6d6fef9914860329bb8ef02796e98ad15c40
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/HtmlTree.java