History log of /packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0d2890660ce68b0c49f434d6496fdc69f1b39dc6 11-Feb-2014 Andrew Sapperstein <asapperstein@google.com> Fix pop crash. b/12968001.

Yet another "passing unicodeWrap null" bug.

Change-Id: I38a087e3b4b40a1a42b669e532b19cbf5f4184d2
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
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/utils/AttachmentUtils.java
f1254d6f2f939ca90620080b1adffbb0c986cbe0 23-Jul-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

Log if the content uri is null in the attachment

Bug: 9656999
Change-Id: I1900eaf4bfdebd60049ffd1f864cc3467a1cfc0d
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
ff8553f20964f4c31b0c503a9e1daff6ae08a9c7 06-Apr-2013 Scott Kennedy <skennedy@google.com> Cleanup

Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
345fcff8e66f1f6637aea802c117930d4f80c871 26-Feb-2013 Mark Wei <markwei@google.com> resolved conflicts for merge of 69c4ddb7 to jb-ub-mail-ur9

Change-Id: I5a14d61257774c9c8c47ea6ae5f981960b5deacf
69c4ddb7a49f11377143c9ff1c7b85b2450449e9 25-Feb-2013 Mark Wei <markwei@google.com> Do not request thumbnail download if there is no network connection.

Remove duplicate get identifier for attachments.

Bug: 8218823
Change-Id: Ia4ca9e6b6798b9132242ff0d9d046cd3e75e4e9b
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
2727fa94c6be3f0c4a90ee3b3dd3193a10e57078 23-Feb-2013 Paul Westbrook <pwestbro@google.com> Move attachment caching to Unified codebase

Bug: 7381557
Change-Id: I8d36e85f0f51e620903f10b2be87ab352e91c0f5
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.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/utils/AttachmentUtils.java
14693431a3b1cd35d3b7149a8df417d409e1f732 08-Jan-2013 Mark Wei <markwei@google.com> Fix string formatting issues.

Bug: 7919558
Change-Id: I1779a63d3ba4d7fd15c77f1ade6938b7b4bcb3c6
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
62066e47fe69c33b60ed970e46809ba81d044064 13-Sep-2012 Mark Wei <markwei@google.com> Prevent photos attached during Compose from showing generic thumbnail briefly.

Cache the loaded previews on save instance state, so when the configuration
changes, we don't have to re-download all the previews.

Bug: 7140604
Change-Id: Ic3fd640cb0116729868548cdd620b67bc06f3967
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
1eea8e00a944bce60d4a136587113232460fd6dd 23-Aug-2012 mindyp <mindyp@google.com> If the size is 0, dont show anything.

Fixes b/7032927 Don't display 0B file size when size is not reported
also updated default image assets
Change-Id: I95d99e66ccf940f334dceb664ac36a93af189cae
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
96f6bed5c71d3cec9725ee3efc6465176c3023a8 15-Mar-2012 Mindy Pereira <mindyp@google.com> Add some null checks.

Noticed these when using the mock provider.

Change-Id: I446699f30ecb8e1e04d2ee96ea05137c8fa0b907
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
1eb5f96d4e9c459d463d664563c755ec36f958f7 10-Mar-2012 Andy Huang <ath@google.com> cross-project refactoring

Attachment.mimeType -> contentType
Attachment.contentUri(String) -> contentUri(Uri)

Change-Id: I333453943914c241c63f9ec0a3824150e52706fd
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
88fc42e48ee4e927eb77e5cab23f2f5151cac649 09-Mar-2012 Andy Huang <ath@google.com> attachment UI in conversation view

Load from a message's attachment list URI to render initial
attachment views. Each attachment view then monitors its own
URI for changes when it expects them (this is quite likely
too granular!).

Change-Id: Ie559672e63910034e4dbf7766101a2b5768129aa
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
4401c9049f0327019b0bfed554bf8ff5cdaa20e2 18-Jan-2012 Mindy Pereira <mindyp@google.com> Parse addresses for senders display names. Move attachment joined string parsing to provider.

Change-Id: I36a5af1d3d54350ca2d9fa97666f5ceb8268a0b7
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
a41bc75e3ff22aa4b729d8a86fa3aade2e22fd7f 17-Jan-2012 Marc Blank <mblank@google.com> Add another attachment utility

Change-Id: Ie2a78d5b3f7d716d48045128fd412e99b6dff2bc
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
f944e9655562e321aff52fe5f437e1d2fa2950a9 17-Jan-2012 Mindy Pereira <mindyp@google.com> Handle attachments on sent messages.

Change-Id: I13a2b9250b61fd059b4b3f92caff03c7a3614881
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java
30e2c24b056542f3b1b438aeb798305d1226d0c8 07-Jan-2012 Andy Huang <ath@google.com> rename unified email's package name to com.android.mail

New code needs a new package name. Fixes IDE conflicts when
browsing.

Change-Id: I328484c6d6c71df077a05d2f7d6d1e85074107c2
/packages/apps/UnifiedEmail/src/com/android/mail/utils/AttachmentUtils.java