History log of /packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
519c218db6109003ca72a35ffe276ed69b0230a4 21-Sep-2013 Martin Hibdon <mhibdon@google.com> Improve display of attachments in pop

b/10714298
Prior to this CL, attachments that had not yet
been downloaded for POP would appear as "text/plain",
regardless of what type they really were. Also, the
filename displayed about always be a non localized
string like "click here to download".
Now, attachments in this state are flagged as dummy
attachments, so when we display them, we display a
localized instruction for how to download, and hide
the mime type (because we don't yet know it.)
Also, when we download, we will not automatically
try to launch a viewer for these kinds of attachments.
We'll just download them, and replace the old dummy
attachment with a valid one.
There is still a bug that even though the dummy
attachment has been removed from the database, we
still display that tile until the user leaves and
reenters the screen. That's ugly but not so broken
as it was before.

Change-Id: I1021baae659ca2d9ee2909f78b414c271d8ca90b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
ce9db80cf997f99b8c5d0ef8d22b074555aaf795 08-Aug-2013 Mark Wei <markwei@google.com> Fix attachments not downloading on 3g.

Add redownload menu item for photos so they can be retried if they ever get
stuck.

Change-Id: I0e3bd8014f81cf7e230e055f92d1442280307657
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
7434e800d4313a227120ca36bd95683752a7879f 21-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Attachments in eml files.

It's kinda slow for large eml files
(because we have to parse the entire
file) but it works. Hooray.

Fixes b/6393073.

Change-Id: I2d7a87a484cd282a000a0905fe069f3ab45e2061
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
9e2d407fdafeb874e640eb84017feaf784309075 22-Mar-2013 Scott Kennedy <skennedy@google.com> Clean up a bunch of warnings

Change-Id: I5c75564eeb2df9ec76d682dbe5f4465ff2a1a5d4
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
8750066b10f80e2a8080016973b3296d76d18266 20-Feb-2013 Mark Wei <markwei@google.com> Set MIME type correctly on drafts when content provider does not provide it.

Bug: 8235172
Change-Id: I7bbccbecb7d038f3add4503be0dcf460a4864b2e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
1867a56f7b9b3146829752b942285ffdc9b3f3de 20-Feb-2013 Mark Wei <markwei@google.com> When normalizing MIME type, also infer it from filename in case it is generic.

Bug: 8223790
Change-Id: Ie093eea2fb1710bfe66472e92e4f5db2b4247f53
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
7bed4bc31a49a2297a38eb9d7b595fba1fa1f849 23-Jan-2013 Mark Wei <markwei@google.com> Starts a pending download immediately when swiping to that image.

Add a new Attachment state, PAUSED, for when we've queued the attachment in the
DownloadManager, but it hasn't started yet.

Modified onViewActivated() so it would only get triggered once when you swipe to
that fragment.

Bug: 8023818
Change-Id: I8038b51d4750e333d9080e2277a745317a281e51
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
267453587f13986acc7de3d52de95184c38fb4e1 18-Jan-2013 Mark Wei <markwei@google.com> When clicking on a MessageAttachmentTile, the images download with varying
priority.

The clicked image should have highest priority, and images further to the left
and right should have consecutively less priority.

Bug: 8023818
Change-Id: I5531971f00db68e4b99bb210c757db53fc2a936c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
1aee17e324f204080baaabceb64f4edf73681542 14-Jan-2013 Mark Wei <markwei@google.com> Load image attachments from live conversations.

MessageAttachmentTile automatically downloads image attachment thumbnails when
missing.

PhotoViewFragment first loads thumbnail, then loads the full image. Shows and
hides the progressbar correctly.

Added ability for UiProvider to specify which rendition of an attachment to
download.

Bug: 7987412
Change-Id: Ief7f4c9a4a354d27045f6415a32211484a8527c6
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
bbe74aee04f669990e888095b0d6858dc1e17ce1 19-Nov-2012 Mark Wei <markwei@google.com> Refactor Attachment code. Combined AttachmentStatusLoader.Result and
Gmail.Attachment into GmailAttachment.

Renamed UIAttachment to Attachment, which still follows the UIProvider contract.
GmailAttachment extends Attachment, and contains Gmail provider specific data.

The DownloadListener in AttachmentStatusLoader will modify the cached
GmailAttachments directly, where previously we would create new Results to give
to the ConversationState.

Cancelling an Attachment download will cancel both cache and external db
entries.

Attachment download dialog will close only if state is SAVED or FAILED. This
prevents a NOT_SAVED state update from closing the dialog prematurely.

Simplify AttachmentRequest. Simplify AttachmentStatusLoader to a listener.

Bug: 7538447
Bug: 7538152
Change-Id: If6362473697e6735f1858619c7af83238d75469e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
5ba812e028d7b57e1014caa762e842b25e6752b8 18-Oct-2012 Paul Westbrook <pwestbro@google.com> Show dialog on redownload

When the user asks to redownload a file, we should show a dialog

Bug: 7362656

Change-Id: I555b015dfe975b93e65c40cef269986fde522328
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
47ca4e2a4c2d7387a7dd8d1925e2512acc553eab 18-Oct-2012 Mark Wei <markwei@google.com> Allow redownloading attachments.

Add Download again button to attachment overflow menu.

Bug: 7362656
Change-Id: I3bd61403205ec2c74f658f6f7f02385f72dd7aa5
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
d2f279ff7f4d257ff268b27be7379d4195354798 26-Sep-2012 Sara Ting <sarating@google.com> Fix possible NPE when sharing attachments.

Bug:7225162
Change-Id: I30255e70ced95f1fa20d2b0eecc6e809a83afe07
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
a25b65e95e90e785012ea4e5ad53408e76e87139 25-Sep-2012 Paul Westbrook <pwestbro@google.com> Second fix for attachment reliablity

If an APK had been pre-cached, we would fail to launch the package
installer. This is because the package installer's intent filter
only handles file:// uris

Now if the UI has specified that the destination is external, it will
make sure that the attachment has been saved on the external storage
before sending the view intent.

Bug: 7133835

Change-Id: I408dc70f1d12a65e15535280484b59cf1a6e810a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
8081df46ef5a7794374e41cd1836e778a2da9b31 11-Sep-2012 Paul Westbrook <pwestbro@google.com> Restore download progress dialog

Now the attachment download progress is using an DialogFragment
so the dialog correctly gets restored on orientation change

Bug: 7137689
Change-Id: I90a225f423bf75fd4dbeb464051374919a3cff62
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
bedcad9e6d89ae2f058138e1aa0446fef4d8f8c7 22-Aug-2012 Paul Westbrook <pwestbro@google.com> Attachment dialog cleanup

1) Display file name in download dialog
2) Don't switch from determinate to indeterminate progress mode

Bug: 7019628
Bug: 7020879
Change-Id: I2593d8648d4e12019be3b92ed7591af139fb463f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
a95161cf364baeea1a9bb098b4f6db961ec8705b 01-Aug-2012 Andrew Sapperstein <asapperstein@google.com> Fix b/6899989.

Now, we block any updates to MessageAttachmentBar's
buttons when the progress dialog is visible. Additionally,
we also block the first update after closing the progress
dialog to prevent a quick update that is then reverted
once the attachment data has been updated.

Change-Id: I4a5ba0720e257c6d9ef09f93a5ac7e7a6b8c6370
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
4cb51dbce9635f4bf68a6de88f759e2f86d20325 21-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Image attachments open photo viewer immediately.

Instead of downloading the first image and waiting for
that operation to complete before entering the photo viewer,
we now kick off the downloads for all photos that are not
currently on device. The photo viewer shows download progress
and also shows the photos once the download has completed.

Change-Id: Ib9561b45020bbab1ffbcec9e88aab9604036fd5a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
b334c9035e9b7a38766bb66c29da2208525d1e11 25-Jun-2012 Paul Westbrook <pwestbro@google.com> Changes to support different Log tags

Change-Id: I7121fbf7132444fc0f5c0c130373e3f2d1a3cf7a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
8f1c01e908d5986e8222dfd45ab82d6895b1ff3b 19-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Added dialog for picking attachment type.

Currently we do not have working capture
audio/video support. Dependent on some backend
support as well as UX deciding it is useful.

Change-Id: I97e4aded6b28a8f9a83db334064d2151ed1a2852
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
532f48253d23ffcb974ab61856df131021dde02a 14-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Enabled actions in the photo viewer.

All four actions (save, save all, share, share all)
are working properly. However, other apps do not
implement receiving the ACTION_SEND and ACTION_SEND_MULTIPLE
so the share and share all actions are a bit janky.

Change-Id: Ifcd3ed36c6bfce4a023b54a61f77e8ae4fd8f3b8
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java
4aa1c1340556c646175c3d0b193be05876ad95a0 09-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Non-image attachments now display as a list.

There are now two separate attachment areas in
the MessageFooterView. The AttachmentTileGrid
contains all images in the gridded tile look.
Additionally, there is a LinearLayout that contains
0 or more MessageAttachmentBars. These bars contain
a small icon, info about each attachment, and
an overflow button that contains additional options
other than the default for that attachment type.

In addition, there is now AttachmentActionHandler
that performs a lot of the interaction that both
attachment views share.

Change-Id: I60d297b7514e6ee35d23a9ec250833e886328d4d
/packages/apps/UnifiedEmail/src/com/android/mail/browse/AttachmentActionHandler.java