History log of /packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
129995d61fbf8ac2e4e464f5ecb37bb5f47822f5 24-Apr-2014 Andrew Sapperstein <asapperstein@google.com> Add analytics for EML viewer.

Change-Id: I0d0a3cd5b377616a35b9e346fbac703ca233b367
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
f59d01c3116dc2adde97a5b52aa6094144c2d315 20-Feb-2014 Andrew Sapperstein <asapperstein@google.com> View entire message UI.

We need the per-message plid server support,
but we are forwarding the clipped bit to
the UI and showing a button based on that
bit. Clicking that bit will open the
plid viewer for gmail. Email should be
unaffected as it does not ever return clipped as true.

b/2887917.

Change-Id: Iddb54e37cf650ca16a75fcbe69f1861becdd81b9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
10fcd645f703799326da326630b663df69f91508 03-Mar-2014 James Lemieux <jplemieux@google.com> Move Help & feedback to Nav drawer of Email.

b/11061485

Gmail remains unchanged due to this checkin.

HELP and SEND FEEDBACK are now the two bottom-most drawer
items in the Navigation drawer of the Email application
when it is present or in the overflow menu when it is not
present.

SEND FEEDBACK still behaves as always.

HELP has been redesigned so that it displays the help
content in a local webview rather than using an external
browser in the Email application.

Change-Id: If1bdba26ac2caca79c81205a409c67659cd49653
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
562c5ba7235948cf1d20a9afa40e67cd62f43cf7 10-Oct-2013 Andrew Sapperstein <asapperstein@google.com> Print single message and offscreen webview.

b/10712542.
Also supports Eml printing and secure printing (though
that's email only and has some buggy rendering).
Also fixes the no subject crash. b/11136365

Change-Id: Ie5f6e7d7e1762c115df3169b6e62dc439545f08c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
e8221483ce5f013f02a4ef63d6682cc36313cda7 03-Oct-2013 Andrew Sapperstein <asapperstein@google.com> Show images by default. b/11044804.

Needs final UX on preference placement
and strings but otherwise, it works on Gmail.
It's off and the setting is hidden in Email.
Currently a checkbox preference.

Change-Id: I97ce4361e9093e5ce7b3300205cba8f58e27b3d6
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
aa27bc0e1c3bb6be4609b00007637a9d3e960f5e 02-Aug-2013 Scott Kennedy <skennedy@google.com> Fix more warnings

Change-Id: I78c6df845aae3475c1e2469b29b52cc995d8d3ae
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
2b9d80eb16156173f11a02eae4f770d8c975927c 31-Jul-2013 Scott Kennedy <skennedy@google.com> Change all resid switches to if-elseif-else

I really want to get this building in an IDE.

As per http://tools.android.com/tips/non-constant-fields, library
projects (like UnifiedEmail will be) have non-final R constants. They
are not final until packaged into the main application project's
(Gmail/Email)'s R.java.

As such, they cannot be used in switch case statements, and we must
use if-elseif-elseif-elseif-...-else instead.

"This is typically in UI code and the performance impact is
negligible."

Change-Id: Ie699c13e1becd51c59c1b2ea81bc902d4f2e28d9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
3de76eca03ed7ec1d40f2cce23cbbbe8e5e6d70f 16-Jul-2013 Andrew Sapperstein <asapperstein@google.com> Conversation View UI Refresh: links w/o underline.

Using a custom span that disables underlining of
email addresses. Additionally, uses a custom
onClick that opens ComposeActivity with the currently
selected account. Still uses autolink, and just replaces
the URLSpans with a custom replacement.

Change-Id: I30f98e124dddc4b732c7e188102928a88dbf222f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
c9524ef7a38c0f949fe614e96af3a5313f36aa0f 11-Jul-2013 Andrew Sapperstein <asapperstein@google.com> Fix hard dependency on account uri in eml viewer.

Fixes b/9739075.

Change-Id: Ia5e3b04dcbd050deb89755609c4de0ae95eac8d9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
7638a1004e7c8ed7a85620243da3b051b60217e8 25-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Final eml viewer cleanup.

Fixes b/9560839. Now we show the title of
the eml file and we also show an overflow
button with settings/send feedback/help.

Change-Id: I5eab245d9fd47e37b83eadcb419255939117ab39
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
8d4791ce70b3f71cc90256bc4b5b236379b56331 12-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Export Eml viewer.

There's really no reason why it shouldn't be
and having it exported prevents b/9334785 from occurring.
Additionally, so that we only use the app's eml viewer,
we check if the attachment is an eml file, and if so,
just open the viewer directly rather than letting the
framework disambiguate (which causes an activity chooser
to show when we have multiple activities that can accept
eml files).

Change-Id: I98e13f894c9218d62049b16e0f4c20c77501fcc5
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
4ddda2f0a4ee5381a90779a6939b05b064ce5d11 10-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Working implementation of eml viewer.

Everything works except attachments.
The implementation uses a controller that is used
by both SecureConversationViewFragment and the new
EmlMessageViewFragment to do the rendering work.

Change-Id: I4d8b9b56e6609c3a81b902b102a90f1e50c115cd
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
376294bbb5ded471ad577fdb492875a837021d08 07-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Refactoring of AbstractConversationViewFragment.

In order to support EML viewing, we need a bunch of
the overhead provided by AbstractConversationViewFragment
without actually inheriting from it. Additionally, most of
the code was inner classes that had no business being such.
These are now moved into their own classes.

Change-Id: I80769d2606b52c41dc116a6bdee17c00adc66a5a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
8812d3c50e35c4f2a02d29c35c76082c4ebec0cd 05-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Refactor ConversationMessage out of MessageCursor.

Just moved the static final inner class to its own
file and fixed up the imports. Also moved the MimeMessage
parsing into Message instead of in ConversationMessage.

Change-Id: Ic35d4cf5e52b392d68898ff47efaeeee4d0865b0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
7922528d9d4b4926f1ed3e1322d14b8e00a03465 05-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Parse eml file to UI's notion of a Message.

Uses MimeMessage to parse the file along with some
utility functions to convert the raw data into
MessageCursor.ConversationMessage so that the UI
can properly display the message. The two new
files are actually moved over from Email.
Also added in some copyright headers previously
forgotten.

TODO Use SecureConversationViewFragment.
TODO Synthesize Conversation for the Message.
TODO Handle EML file attachments somehow.

Change-Id: Idbf5a2da2197822d72a2cd0c0f07ccc4dbfb64d9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java
f86e023107de3647d6c862cc6d6b45a3d7887e77 31-May-2013 Andrew Sapperstein <asapperstein@google.com> Basic EML viewing support.

The base of an implementation is there.
We can view the plaintext right now.

Change-Id: Ib9dd37197c0592221f49b7770efb459484a4e6f0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/EmlViewerActivity.java