History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4f347e811052f446c3958c76db278bcd7b39a44f 26-Feb-2014 Andy Huang <ath@google.com> allow an extra option on attachments (in bar and tile UI)

Bug: 7659807

Change-Id: I4c1294d2ba772a70139e0b37429b17bc6096cafd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
db65689be3ada3965c12312ad60b2a5d6917a98e 25-Jan-2014 Andrew Sapperstein <asapperstein@google.com> RTL - attachment tiles. Fixes b/12037028.

Also fixes a bug in compose tiles where the
attachment title and subtitle weren't being shown.

Change-Id: Ia568672abbd2503f95882473f71237710fca02da
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
6c9771c0966a9aded0706c363233bbd3efaa5a9c 25-Nov-2013 Andrew Sapperstein <asapperstein@google.com> Stop showing attachment title if image exists.

Previously, we never explicitly hid the title
and subtitle of attachment tiles. Now we show and
hide the two views depending upon whether we're setting
a real image or a the default image.

Additionally eliminated the thumbnailloadtask that
was never set or used.

Change-Id: Ib2df5ea75cce569d9a4bb1bb1991f0ff9c3d3989
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
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/ui/AttachmentTile.java
381c6b390dfbfdf7040dcc2193438c70c6f66b9f 22-Feb-2013 Mark Wei <markwei@google.com> Fix line width nits.

Change-Id: Ic8d33ce3d0c8c78eb461ef056f0b625d68a510b4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
28cd871718527b9656b428bda196c293cac502b3 20-Feb-2013 Mark Wei <markwei@google.com> When adding attachments, if the content provider does not give a valid mimetype,
infer it from the filename.

Bug: 8227876
Change-Id: Ia4dffb021c5cef609d584e9d77f1d92e9475979c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
e16b4dddf6a310e0e70908fdffd7bad45d97a99c 29-Sep-2012 Mark Wei <markwei@google.com> Fix attachment previews from letterboxing

* Fix scaling regression caused by BitmapFactory.decodeByteArray()
* Smarter handling of different preview sizes. There are now 3 classes of
preview images: large, long/skinny, and small.

Bug: 7148589
Change-Id: Ie232cc00cd5a8adeed3309aa4615b28de2c37b1f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.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/ui/AttachmentTile.java
484e4e3483852fe1b313bb55cc43fe0c259664e0 11-Sep-2012 mindyp <mindyp@google.com> Leave the default image size alone; add gray background

Fixes b/7086671 Text not readable over generic image

Change-Id: I04d4ccfbce4fc461e9b7260826c89de724c79f22
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
211a2cc9acb360986ffd91b0f7662de1e7f06490 06-Sep-2012 mindyp <mindyp@google.com> Use default background ALWAYS

We were using 2 different assets

Change-Id: I684c8697306e9ad2280ee75e21e9747ae0223cfd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
49d9fbc062289cdcf5ce3c57cc41927c8213c40a 29-Aug-2012 Mark Wei <markwei@google.com> Attachment tile images are original size if smaller than bounding box.

If one or less dimensions are within the bounding box, the preview is centered
and cropped.

If both dimensions are outside the bounding box, CENTER_CROP scaling is applied.

Bug: 7055864
Change-Id: Id6155ab68cf0210d7f7c4ce843cbe72a585c5c4e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
638f7076b634176449bdd590d7c59fa5ce0357e5 18-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Fixed an issue with the preview images.

Occasionally, the preview images would not crop
appropriately because we had different ScaleTypes
for default thumbnail and the preview image.

Change-Id: I2296d7de7356a0dd12ed5245bf9ac86cacb4d811
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
1dc25e45b43aaab2ed869381de1b1276cf72b08f 17-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Improved reliability for attaching photo previews.

Previously, we were doing no scaling of the previews
(to be more clear, we were, but then it was removed).
As a result, when you attached large images, we occasionally,

Now, we have restored the scaling of the images. However,
That created a possible divide-by-zero error if we were
launching the thumbnail loading before we had performed
an initial layout and measure pass (because we had no
width or height values for our view).

To eliminate this possible error, we now perform a
check for this case and don't attempt the photo
load if we would have an error. Additionally, we have
added a separate call to load the photo inside onLayout
when we know that the attachment tile has a width and height.

Change-Id: I3650f3d240e79242bcf30170b44eb6b3c1fd0c87
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
afff6d79b4ea2713ef75bfdad8abd7e21ee20080 26-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Updated the UI for attachments per revised mocks.

Now showing name/subtitle when we don't have a
preview or if we are in the compose view.

Still needs revised assets.

Change-Id: Ie522b5dd28b605c8e16793a65a75696c00169fae
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
5c721d9e6df069b6385929817bb2b61faeba25a3 23-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Removing the photo viewer from unified mail.

Change-Id: Iea42c019fa31a7ead997505da295eb4aae0e2e4e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java
2ea06183aa826b28fe6ebdb454da49ba3878bc4f 20-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Collapsing attachments in compose now works.

When the draft has attachments, if the focus
on any of the text fields changes, the attachment
area collapses into a smaller area. Tapping that area
causes the attachments to expand into the full view
with the previews. Some refactoring was necessary to
enable reuse of the thumbnail loading for the small
preview icon.

Change-Id: Iaefb71736a2359b9090b2fe736ad2f33a9838ed7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.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/ui/AttachmentTile.java
237129ddf57a1e25469d8990322fb7913e18ae20 15-Jun-2012 Andrew Sapperstein <asapperstein@google.com> Compose now shows images as tiled attachments.

It's still a bit buggy (notably, once the previews
do not show up after the initial attaching). Those bugs
will be fixed in the next commit but this was a good stopping point.

In order to reuse as much code as possible, the AttachmentTileGrid
was moved into com.android.mail.ui. Additionally, MessageAttachmentTile
was split into AttachmentTile and MessageAttachmentTile. AttachmentTile
is a base class that handles all of the tile interaction that is common
between the browse and compose versions. At present, this is mostly
the fetching and displaying of the preview image.

As a result, MessageAttachmentTile now derives from AttachmentTile.
MessageAttachmentTile handles the interaction specific to browsing
messages (such as opening the photo viewer, etc).
There is also new class called ComposeAttachmentTile
which derives from AttachmentTile and handles the interaction
specific to composition of messages.

The AttachmentsView in composition now contains two children in its
view hierarchy, an AttachmentTileGrid and an inner LinearLayout
that now stores the non-tiled attachments.

Change-Id: Iad85529a7b6d573060645499271860cf07877754
/packages/apps/UnifiedEmail/src/com/android/mail/ui/AttachmentTile.java