History log of /packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aa76bdfae889b995395a7636742128b3585727f9 07-Aug-2013 Mark Wei <markwei@google.com> Add a setting for attachment previews.

Bug: 10131520
Change-Id: I861a3aa7a1131c1a089011aed7492a0e4ff1ebcc
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
955a766f6c9c30e06dcd504ebc4dd6db510c2fa6 07-Aug-2013 Scott Kennedy <skennedy@google.com> Fix some long-press/drag bugs related to ads

1. Do not allow dragging of an ad
2. If selection/drag mode cannot be entered, return false from
onItemLongClick(), so that we don't vibrate.

Change-Id: I8915213fa567f955268a73534fc4c5d45da1f4c4
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
79c3e1ed9cb1e1660c5d34b7bf3f3ab5c5dd5162 22-Jul-2013 Andy Huang <ath@google.com> new allocation-minimizing bitmap decoder

Use a new image decoding and caching framework. This one maximizes
bitmap reuse by decoding into fixed-sized Bitmaps and relying on
BitmapRegionDecoder to only decode a desired region. The ultimate goal
is to allocate memory less often, as each large allocation triggers
GC jank.

The overall request/response abstraction and threading model are now
cleaner, and caching is no longer a required fixture. Multi-core
decoding is now supported, with a currently fixed thread pool size of 4.

Attachment images are the only client for now, but contact photos will
switch to this framework next.

Bug: 9566006
Change-Id: I7c437941fd984cc0038da8f0ffd1df1a9ced4dd3
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
8afccad8b03701577bb4b734a0f4fe76f6cab487 29-Jul-2013 Scott Kennedy <skennedy@google.com> Remove the eye/starflip from conversation item view

The eye is creepy, and nobody knows what it means.

Change-Id: I53a39f3e0ab39b56445eacc66130487469d912fa
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
1fea6a3cffcc8c4afc3d877e5dc57d29f9665942 10-Jul-2013 Scott Kennedy <skennedy@google.com> Better CAB mode

1. Flip out contact image, scale in a checkbox optionally on grey
background
2. Flip stars into peek icons
3. Only peek icon will peek

Bug: 9592097
Change-Id: Ia972132284ef62f4964c7027ab09157a525dd804
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
07fe8df87bde8732398434e55cce366a8528c181 30-May-2013 Andy Huang <ath@google.com> try not to grab the conversation cursor mutex on the main thread

Bug: 9186894
Change-Id: I27ad96a0cdeea354bd3fc915a6072bbf79518fd0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
6126d72ae2769bd39451872f45781cadb5b90515 25-Apr-2013 Mark Wei <markwei@google.com> Fix multi-selection on tablets.
We invalidated our previous assumption that tablets will always have a checkbox.
This fixes new issues with tablet CAB mode.

Bug: 8698135
Change-Id: If76f0f3d07f1b515afc5d05f57f0d8cc068b3fe9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
4758e980c21027ef1a9cacc9847170290b2ae42e 25-Apr-2013 Alice Yang <alice@google.com> Make sender image behave like checkboxes

- Tapping on sender image selects/deselects a conversation.
- Removed the "checkbox" option from settings, but didn't change wording
yet since settings text hasn't been finalized.

Bug 8713329

Change-Id: I11afe2b2ca3191f63ae5b82228fa209fdbd9295c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
370f868c834861e7732faaa9bdd07a0fa0105596 09-Apr-2013 Andy Huang <ath@google.com> fix shorter-than-expected leave-behind view heights

Make leave-behind heights variable, dependent on the
ConversationItemView that originated it.
Make the background on a SwipeableCIV not a separate view, but a simple
background. Also simplify the conditions under which it occurs-- it just
appears whenever translateX is non-zero. This covers all swiping and
animating cases handily, without the need for extra listeners.

Remove an old workaround that gave ListView on 1-pane an opaque background-

- it was there to mask FolderListFragments that stuck around, but those
are relegated to the drawer now. This reduces list overdraw by one.

Bug: 8570880
Change-Id: I2e2ea875d4ab58b5048d41025b8a2c48a3d63536
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
642731419abb9037a729114d32d6ddd15af0a406 11-Apr-2013 Alice Yang <alice@google.com> Checkbox vs. sender image setting

Replace the current "Hide checkbox" setting with a tri-state setting with
choice of:
- Show checkboxes
- Show sender image
- Show neither

Bug: 8512959

Change-Id: I87f9cd373283fd600bdd23a7307d37c660f0805a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.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/SwipeableConversationItemView.java
c03b05aa74346d10151cb8624af78e6ef0393cea 28-Sep-2012 mindyp <mindyp@google.com> added interface for toggling

Fixes b/7254474 gmail crash

Change-Id: Ic07d5951d4fbef838ddcd7e2484f094ccfd13ead
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
84f9b5c60dc023570202859ba1d30cf9cb5e6e7a 16-Aug-2012 Mindy Pereira <mindyp@google.com> Don't show the action as we are swiping, just on the leavebehind.

Fixes part of b/6926116 need visual design for swipe

Change-Id: I2f53e5b652ee687f7046306064917e55b7ea005e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
5c16f82f9916b8d21fd36ac7c460811e59ba6614 15-Aug-2012 Mindy Pereira <mindyp@google.com> Only items that are being destroyed should be blue in color.

Create a mechanism to reset items to original state before starting
any animations.

Change-Id: I530ec7c1fd31fcd04ca215dc789fd6c5fca57da4
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
bcd784c09f649785a3dda1d6d9a6d5f58ba41770 10-Aug-2012 Mindy Pereira <mindyp@google.com> Explicitly call out the name of the folder/label being removed.

Fixes b/On swipe change copy for Remove from label to Remove from [labelname]

Also, that's not a not =P if it is animating, skip, otherwise, refresh
Change-Id: I450033cac8adf2b95e9ed101e1a4651f708e5ac0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
067ef97264240a2c3f9172a9ab88ba43fef7c475 08-Aug-2012 Mindy Pereira <mindyp@google.com> Moved swipe animation into animated adapter; alternate method for finding position

Fixes b/6930375 Crash on Swiping to archive few messages in quick succession
fixes b/6933685 After swipe to archive, tapping on email to open is off by one message
fixes b/6937509 seeing duplicate messages in inbox; when clicked, they open a different message

Some small funkiness in the animations on latest build; the top most item in the list is overlapping the top of the actionbar
I'm not sure this is my fault, but filing b/6961067 funkiness when deleting top item in list view to check into it
Change-Id: Id1e392744c58d806d633ee4d84abfadf9846e4a8
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
e7d783d726236cb090bba1baed1ea44f743ad788 07-Aug-2012 Mindy Pereira <mindyp@google.com> use activated NOT pressed

Fixes b/6881969 Blue highlight appears on search result after opening in 2-pane portrait mode

Fix that states for conversation items were not getting updated.
Also, clear the state of the item
When it two pane, it wsnt getting cleared correctly
This is still highlighting the conversation in list mode, but its taken care of
about 90% of the issues we were seeing (no more duplicate highlights for instance,
correct view mode)

will fix the rest in another CL
Change-Id: I6352c33e58462cf00412cf54086f1ecc08b6a90f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
33519c002b7e4504dbf964a808cf2f7aff32d16c 01-Aug-2012 Vikram Aggarwal <viki@google.com> Priority Inbox marker support for Conv list

Change-Id: I4cc99ca5df4cdf50c997951d3d84e69d5c5ab1b0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
709a174a40ec296c40368d723c2f51e3fc48ed50 26-Jul-2012 Mindy Pereira <mindyp@google.com> Remove the background when we no longer need it.

Keep a smaller hierarchy when possible.

Change-Id: I30af1025016104b82bc84339888cc8f510b42cfe
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
bdb43d559dfba09752e95ca88f73ca566dcbb86f 26-Jul-2012 Mindy Pereira <mindyp@google.com> Dont show background for items that are not undoing a swipe gesture.

If undoing and it wasnt from a swipe, then have it grow back in
If it was from a swipe, have it slide back in left to right
Conflicts:

src/com/android/mail/compose/ComposeActivity.java

Change-Id: I6087128620e5db9d5eaa8995300bed8b2ff97911
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
350acdc75af67425aa3f8b6e4f889d4828ce8705 26-Jul-2012 Mindy Pereira <mindyp@google.com> Fix the text in the leavebehind; change undo animation.

We don't care about the count.
Conversations should slide in from the right as a result of undo.
Change-Id: I10d24f758a7260ff5cbb743c2d9c50445a989e6c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
62d7962b2b4d73f8414bbab1f42952442ac25be0 25-Jul-2012 Andy Huang <ath@google.com> Animate out existing leave behinds.

When the user swipes away a new item and there is a leave behind showing,
shrink away the existing leave behind so that we maintain some reasonable positioning.

Change-Id: I7318cc6ad1a7c0c8ed3420374680bac549c2e458
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java
1ef988f0c8be136fda75ed207c222413db1d3f0c 24-Jul-2012 Mindy Pereira <mindyp@google.com> Add a black leave behind peeking out behind a swipeable item.

Change-Id: Ib5e90fee11899710e5ce9ca547003530ee56ca1e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SwipeableConversationItemView.java