History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
afaab1752ab5b507cdaad7b3619ffc1c9728368f 08-Aug-2014 Andrew Sapperstein <asapperstein@google.com> Remove above attachment promo. b/16138036.

Change-Id: I611f0f7e6eeea0247956e0f1a9f2ec3ec51c9eef
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
eb58a092961773a8da67c0e0dd5770346381d938 24-Jun-2014 Andrew Sapperstein <asapperstein@google.com> Updated conversation header for quantum CV.

b/15595931

Using a combination of breaking and non-breaking spaces
to ensure that labels start on a new line if they don't
all fit in the remaining space of the first line they can
be drawn on.

Starring works now.
Can click the labels to open change labels again.
Priority indicator is now baseline aligned.
Properly drawing the label chips.
Label chips moved up to the baseline
RTL support.
New star asset.

Change-Id: Ife32339f174bff7beafc979f9cc9761cefffed72
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
b5cfdb21796667ca2b98774ff47cfd16b501c6f7 23-Apr-2014 Andrew Sapperstein <asapperstein@google.com> am 381c322e: Save to drive promo. b/7659807.

* commit '381c322eb30c39f63a2bb82812d63262eb3c1c1c':
Save to drive promo. b/7659807.
381c322eb30c39f63a2bb82812d63262eb3c1c1c 20-Apr-2014 Andrew Sapperstein <asapperstein@google.com> Save to drive promo. b/7659807.

Provides a space above the attachment bars to show
some additional content. Default behavior does nothing.
Hooks have been added to allow resizing of the message
footer.

Change-Id: Ib950091d176311bdb06c7c7a466223beb997a7b5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
934b1f470a646a4ca64fc63eeb823d4c5c12698e 09-Apr-2014 James Lemieux <jplemieux@google.com> Inline images are not displayed for IMAP and POP emails

b/11998344

This solution covers these use cases:

1) Inline images in the Email app.
2) Inline images in .eml attachments in the Email and Gmail apps.

The solution here was to override shouldInterceptRequest(...) in
the WebViewClients and resolve any cid urls that are encountered
within the email body.

EmailProvider and EmlAttachmentProvider both gained the ability to
query for an Attachment object using a message ID and cid (which
is stored in the database column: contentId).

With this new query in place, it was straightforward to fetch the
Attachment in the WebViewClient and then obtain an InputStream to
the file that backs the Attachment to return back to the WebView.

Change-Id: I7c0e33e62d6cdbd6a2a3fc81e8621755bdbaf704
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
4e87a08e295e775f9a30b4f49f95f983410da784 14-Mar-2014 Andrew Sapperstein <asapperstein@google.com> Merge "View entire message UI." into ub-mail-master
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/ui/SecureConversationViewFragment.java
e6bf30d6e98eb6140b7a5f301efe631ff35c9f7b 14-Mar-2014 Andrew Sapperstein <asapperstein@google.com> RTL - Align conversation header with viewStart.

Fixes b/13432564.

Change-Id: I97954654b829579d481780ddd0c550d4caa58086
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
2fd167d6131482da984768b5ee75cefa32ed3e32 28-Jan-2014 Andrew Sapperstein <asapperstein@google.com> RTL - conversation view fixes.

b/12681840 - Properly align attachment details.
b/12681242 - Message header expanded details are locale aligned.
b/12681528 - Message header title and snippet are locale aligned.
b/11989230 - Set each overlay view's layout direction.

The first three bugs were fixed by adding unicode wrapping
to a bunch of fields.

The final bug was slightly more complex. In some scenarios,
the overlay views's layout direction was not properly resolved.
But it should always be the same as its parent so we forcibly
do it now when adding new views.

Change-Id: I9e065e0deaf1958ee87d098231238f6d976e9e68
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
7cad28070b4e903e4ce05e5fc610988f71630f97 10-Jan-2014 James Lemieux <jplemieux@google.com> Remove Print/Print All from conversation view in Email.

b/12245916 A secondary change in this defect is to dynamically show either Print or Print All in
GMail conversation menus depending on whether the conversation includes 1 or many messages.

Change-Id: If78dced66893c0ae619850f2272c007747e98e26
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
821e578a71c7015646522e729600618f0ec16fc0 07-Jan-2014 Tony Mantler <nicoya@google.com> Deduplicate Address class

Change-Id: I4f6df51f5641475ffaf96b0189ccc00748880cc0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.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/ui/SecureConversationViewFragment.java
a9ea8c67dea4eb11ec88c60c70eca6e9b3ca3ab3 04-Oct-2013 Tony Mantler <nicoya@google.com> am 37ce6077: Update conversation header when account settings change

* commit '37ce6077b70c94ca11063fb82c0600874d826b06':
Update conversation header when account settings change
37ce6077b70c94ca11063fb82c0600874d826b06 04-Oct-2013 Tony Mantler <nicoya@google.com> Update conversation header when account settings change

b/11066041

Change-Id: I8fad4670ce97beeadb607f7dee6570ed39601e65
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
5c1692a5faeab220881a17a3427a8986ef874403 16-Sep-2013 Andrew Sapperstein <asapperstein@google.com> Initial printing support.

Needs mocks and redlines and such.
b/10712542

TODO:
Logos for Email and Gmail.
Attachment support.
Use offscreen webview.
Secure conversation view support.

Change-Id: Iec37a9a46e506ccf12fbbb775c1b47b08a0d9724
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
f0ea4849bf7a2c11f99ca0b42307ae8ba665b1dc 14-Aug-2013 Paul Westbrook <pwestbro@google.com> Add public no-args constructors for fragments

Bug: 10311630
Change-Id: Ic7ba4783be34a9c3d185f6cbad3001f49b310aad
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
a88125e43f1d1c93b8a563597e3c4dcf706bdd44 13-Aug-2013 Paul Westbrook <pwestbro@google.com> Fix ISE in SecureConversationViewFragment

Bug: 9816528
Change-Id: Ifcd447c7eb7da94ae868baa8fae4521865357364
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
d90639004a3551d7fb7086f318d4c576d54d2b86 03-Aug-2013 Scott Kennedy <skennedy@google.com> More warning cleanup

Change-Id: I22970341bf11eb355aa495f61c022efb8db61bcb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.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/ui/SecureConversationViewFragment.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/ui/SecureConversationViewFragment.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/ui/SecureConversationViewFragment.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/ui/SecureConversationViewFragment.java
a0bd832c198c399c8176f88ceab7bf7e36f0af05 01-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Mild code cleanup.

Change-Id: I4d12e6d072d21ec5d7562a4edac253fe37301e91
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
a8d623a3676f8abdda52b9516556e52e8490dbf7 29-May-2013 Andrew Sapperstein <asapperstein@google.com> Properly size text in Email.

Now matches the Gmail behavior where we
set the text size to 80% and then scale up.
Also refactored the scale up portion into
AbstractConversationViewFragment. Fixes b/9176401.

Change-Id: I902b399f96d4b6e8a7dd2450108e6c8bf5e24ab1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
bf1d35fab89443d8e380ab48e98ac1c8cd7a6686 29-May-2013 Andrew Sapperstein <asapperstein@google.com> Add margins to email messages.

Previously we did not add any margins in
SecureConversationViewFragment. That is now
fixed. Fixes b/9095450.

Change-Id: I3343ebe2d32d4800296c2bcdcc87a9444103eceb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
2c6cf4c5e3d04907f2f030dedf983d77de730a4f 23-May-2013 Andrew Sapperstein <asapperstein@google.com> Always show folder labels in Email.

Now that we can actually put the current
folder in, just show the label always.
Fixes b/8488727.

Change-Id: I1bf139baebc81c5708950157f60ebf6d9d1d7247
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
c42ad5ea3a49e6045a79d1fde3d858033176e67b 10-May-2013 Paul Westbrook <pwestbro@google.com> Use an ObjectCursorLoader for Messages

Bug: 8763530
Change-Id: I0a70c92dd52eff5d10c067fdb78b371bfd8178ac
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
ff8553f20964f4c31b0c503a9e1daff6ae08a9c7 06-Apr-2013 Scott Kennedy <skennedy@google.com> Cleanup

Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
be7739bf0cebc5018c8ffb0c649fc62a74d74e69 18-Mar-2013 Andy Huang <ath@google.com> better scrolling in JS-less single-message conversation view

Allow simultaneous horizontal and vertical scrolling when the WebView is
embedded in a ScrollView by supplementally sending touch events to the
ScrollView when it normally wants to intercept AND the WebView handled
the touch. Touch interception happens as normal on any other child.

Bug: 8368615
Change-Id: I21f8721c673fd8146992b933d0c966d59c376795
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
2e9cef068501643d82bb4eca20aedaea79ccc600 16-Mar-2013 Andy Huang <ath@google.com> fix NPE

Change-Id: I1ceb915ec59009762eccf184fb2f31cb35a1b715
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
75b52a50a7b8382d9046d48ea8cda97b5471cbc8 15-Mar-2013 Andy Huang <ath@google.com> hide rendering reporting in Email2

Change-Id: I6fc750a0369a9396fc00f4e5fe4ffac61831d5b4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
2e57e5485504c9ea2e5b5186f22bb76ea5f7bf6d 16-Mar-2013 Andy Huang <ath@google.com> clean up secure CVF

no functional changes yet.

Change-Id: I9bf895aeb1b41de88002d5597d802e4c782fb0fd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
1ebc2db723ed29093d724eb5da906a496ee57224 15-Mar-2013 Alice Yang <alice@google.com> Add way to report good/bad emails.

Added option in overflow menu to report an email as good/bad.
Currently forwards to the mailing list and prepopulate the compose text
with debug info.

Change-Id: Ieb468d8a13dc929dff808a3020f3d52ae7f85b07
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
4d6384e8c8d4bba45c2744b137cf90ebf5cc63a4 08-Mar-2013 Yu Ping Hu <yph@google.com> Don't set subject on action bar in ConversationViewFragment.

It's unnecessary since the subject is set elsewhere, and
it sometimes results in the wrong subject to show.

BUG: 8282128
Change-Id: I54b4390f3279330db7ff95e507c13cf2e25b87f9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
d82a31f04f2a4cce27c8023d5330ff13aad198b0 06-Feb-2013 Vikram Aggarwal <viki@google.com> Suppress automatic update to mark read/viewed when marking unread

Every conversation shown in the CVF is marked read, because it has
been read by the user. When we mark messages unread, there is a race
between the marking unread, and this automatic marking read. In rare
cases, the cache can get the operations in reverse order:

1. User clicks on message
2. User marks unread (in a hurry)
3. Message is shown
4. CVF.onConversationSeen() is called, which
5.... marks message read and viewed.

The easiest fix is to suppress marking the message read when
markUnread() is called.

Bug: 7326925 Mark Unread Non-Functional When Viewing Message
Change-Id: If57f674f39b5dbf115a468fcd17656f9715394ed
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
51ad9041014920d78d9b7b3ab84ec04a7c41beae 17-Jan-2013 Vikram Aggarwal <viki@google.com> Don't update subject in onUserVisibleHintChanged

1. Changing the subject in onUserVisibleHintChanged is overkill. The
actionbar subject is changed by the controller, and the
conversation view subject should be changed as a result of
updates to the current conversation.

2. Only perform the operations in onUserVisibleHintChanged if the
fragment is visible to the user.

Bug: 8025544 Call to setSubject in
ConversationViewFragment.onLoadFinished

Change-Id: I71bd78641f20635709bc1dafb5c37942c249effe
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
69a6cdff8afde77ec9bcd75a5651ee212344019e 09-Jan-2013 Vikram Aggarwal <viki@google.com> Allow veiled address pattern to be updated through settings

Change-Id: Ibbd412308283fd2c0cae0abbec0a43be1db1b3ad
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java
351ad4e87e0b0b98df9ca88266a8a63541dc5a81 07-Dec-2012 Andy Huang <ath@google.com> use parcel intermediate format for ConversationInfo

Instead of passing ConversationInfo/MessageInfo around as
Strings from provider->UI, use Cursor's blob functionality where
the blob is the marshalled form of the parceled Info objects.

This should be a acceptable use of Parcel, given that we are not
persisting this form, and it only exists to facilitate
provider/UI communication through the generic Cursor interface.

Parcel blobs are fast, well-tested, and do not require
input sanitization.

Traceview testing reveals pretty good gains in Conversation
construction (29% faster on Nexus 7), which is most of the work
in getView().

Change-Id: I05451fba2201ca2f2c3ee76c80fb356c36e8ccad
/packages/apps/UnifiedEmail/src/com/android/mail/ui/SecureConversationViewFragment.java