History log of /packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e64d20ca9e541ef9f48b31bd5ae92fa02b64327a 10-Oct-2014 Andrew Sapperstein <asapperstein@google.com> Use locale-specific number for CAB count.

b/17627434

Change-Id: Ia5a63ba3b1e69dbe4d77ce38abd479becfc778ca
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ea61dab12099606a1d385e1003dde46bf0f47d4b 06-Oct-2014 Jin Cao <jinyan@google.com> Remove retry UI state and enable delete for sending

Until the "Failed" state is fully implemented, we are going
to stick with the old behavior and remove the new Retrying UI
state. We'll also enable delete for Sending items so users
can delete messages that are perpetually sending.

b/17814043

Change-Id: I6e510a553123fa5fdf6bada0fae92bb3e82ec798
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
1e5bccefa627306120fbfd783838e1ef8b7fe0d8 30-Sep-2014 Jin Cao <jinyan@google.com> Disable unused menu items

Since we now have keyboard shortcuts, it's no longer
enough to simply set menu items invisible. For menu items
that are no longer valid, use both setVisible and setEnabled.

b/17692730

Change-Id: Iad9fb9b6638a68a4650cba699ea430c5c6e6e0fe
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
030f1bdf9b392308c898a5128b38ed463d1740dc 25-Sep-2014 Jin Cao <jinyan@google.com> Merge "New keyboard shortcuts" into ub-gmail-ur14-dev
a6b45218b8d90d7fc3a5ca0901293c71df404553 18-Sep-2014 Jin Cao <jinyan@google.com> New keyboard shortcuts

Does not include ctrl+ENTER for SEND & we need a new
key for REPLY since we are not supporting shift.

b/17070243

Change-Id: Ia5f179336dfc2b6631e1a5f26ee888f82f4873c0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ec86c424934205dcbc21078543be116d50e1b183 24-Sep-2014 Tony Mantler <nicoya@google.com> Don't allow starring messages in trash in CAB mode

b/17460527

Change-Id: I8de879c3d3f4b89213810957fe0e4c7f1ebf8ccb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
db861e9f08677da6d685d9cffc9072d2f98c0944 08-Sep-2014 Andrew Sapperstein <asapperstein@google.com> Show unread count in CAB mode. b/17204324

Change-Id: I20b01e7b018f625646349e9a11df630d70ba35d1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7ae078381e3552a63e93485b09eed68a5daf798e 03-Sep-2014 Jin Cao <jinyan@google.com> Merge "Keyboard support for focused state" into ub-gmail-ur14-dev
ec0fa48764bede0772e9c711f3e33361b62f3608 29-Aug-2014 Jin Cao <jinyan@google.com> Keyboard support for focused state

- remove focusable from FAB so keyboard won't navigate to it.
- rename selectionSet to checkedSet
- selected is a state for listview to focus one of its elements
- what we really want is checked state for checked items in CAB mode.
- show the blue focus bar when isSelected returns true
- this is auto-set by the framework as we navigate using the keyboard.
- remove blue background color for selected state

b/17258708

Change-Id: Ic9739c9b349403942f64fafa26500c08d1f1cc4c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
4c92874d9acedc81184339645b24eaeebacbb782 30-Aug-2014 Andrew Sapperstein <asapperstein@google.com> Pressing back in CAB mode should close CAB.

Fixes b/17112203.

Change-Id: Ia5aa0ff22620d429cfedff5139f6737766693b08
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
69419bb35240747d14765d4c74d4c2de58f4f8c5 16-Aug-2014 Rohan Shah <shahrk@google.com> Disable Change Folder if account does not support it

Added a TODO for cleaning up
SelectedConversationsActionMenu.

Bug: 17070852
Change-Id: I03224f7e2b32b3fb623df5982a8959a70d5a01e6
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
52882ff08fe9420fe2dbb3f681545a330222e9c8 27-Jul-2014 Andrew Sapperstein <asapperstein@google.com> switch to appcompat. b/16664350

Currently only for MailActivity, ComposeActivity,
and FolderSelectionActivity.

Any activity that inherits from ActionBarActivity must
use an Appcompat-derived style. Three styles currently
exist: UnifiedEmail.Appcompat, UnifiedEmail.Appcompat.Toolbar,
and ShortcutWidgetTheme are all based on appcompat.

go/appcompat-material-doc contains the full migration guide.

The fast version is:
All MenuItem-related work that relates to actions must use
the MenuItemCompat-equivalent.
Any theming should use the appcompat versions which don't require
a namespace prefix. For instance, use actionBarStyle instead of
android:actionBarStyle.

There are a few missing styles on views that can't use appcompat versions.
Those still use style overrides for v21 changes. All others use appcompat versions.

A few methods on activity should now use the support equivalents:
getSupportActionBar()
supportInvalidateOptionsMenu()
startSupportActionMode()

Change-Id: Ic6f5964f4115ab4bde49c19df5fe49c9086df965
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
fdc76bfe9457854495638cc4d4e168bf52fcb24b 04-Aug-2014 Jin Cao <jinyan@google.com> Merge "Support "deleting" in outbox" into ub-gmail-ur14-dev
d90a3bb006296443ea35ec3062cad11092ac2f95 02-Aug-2014 Andrew Sapperstein <asapperstein@google.com> New assets. b/16463154

Change-Id: I834a70dde51b44be793610aa174c604257633469
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
512821c11d89d49908f3cfdee0b582601f500f3d 31-May-2014 Jin Cao <jinyan@google.com> Support "deleting" in outbox

- Allow only failed items in Outbox to be swiped away/deleted.
- Same applies for multi-selection.
- "Deleting" in Outbox means remove the outbox label from the
failed message and applying the drafts label. This needs to
be implemented by both Gmail and Email providers.
- Added new ConversationOperation for this new action.

b/4080109

Change-Id: Ia9c8e386c7c65693f72fda85a49cb6a1b7d1fec1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
3047a9f03d9febaf2aba1e5ea0827e0b740d1ab2 23-Jul-2014 Andrew Sapperstein <asapperstein@google.com> stable action items

b/16167419

Change-Id: I72c7c44f5728563da1fcbd39daa31ccd41845d8a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7750adb207c55d61ba4693a461ba1e133940f39f 19-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Action bar update - asset swapping. b/16167419

Not all assets are ready, but those that are
have been swapped in this CL for TL and CV.
This CL does none of the changes for action item placement.

Change-Id: I7ce383806a9c9e6591b77f646bb5ba569be74810
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
402817434733dfd63bfbc844e6df7ef8c85ed455 02-Jun-2014 Ray Chen <raychen@google.com> Remove selected count for CAB mode

b/10094624

Change-Id: If5db664945dd68dd13423ce606af101d2f9a6e77
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f55863727de2bb15f1906944bbc88c82703a3aff 08-Apr-2014 Jin Cao <jinyan@google.com> Added support for arbitrary post-undo actions

- Added interface to add arbitrary callbacks after a specific undo
action occurred. This is useful if we want to do some specific UI
modification after an undo, show the user more information, etc.
- This callback is also added to DestructiveAction so all destructive
actions can run custom callback when it's undone.
- Used the interface to add show the removed conversation when auto
advance is active.
- Removed references of inLoaderCallbacks in AbstractActivityController
where it's not being used.

Demo video here: https://drive.google.com/a/google.com/file/d/0ByX6TliQlkICSjZub0ZyaWtxS0pmZk1kbk5WQ2V5SGlMTWxF/edit?usp=sharing

b/6769311

Change-Id: I00cc66421315091cc934e0f63188ff693b0a84b8
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
2a4be2459962700e1a38ba897de5d2f5913412f5 12-Dec-2013 Tony Mantler <nicoya@google.com> Convert FolderSelectionDialog to a DialogFragment

Also clean it up to use loaders

b/11538664

Change-Id: I5810f0c4423c0c30d9785723672b3535eebcf998
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
53b34250c0029ac3dae4c72822f79d9fad85caa4 26-Sep-2013 Tony Mantler <nicoya@google.com> Don't show label-specific actions for non-gmail accounts

b/10903244

Change-Id: Iec6b900431ca6aa4c1a022c06c49920bc46067f4
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
cc139833bc5829ba70244519e9870de783c41848 20-Aug-2013 Scott Kennedy <skennedy@google.com> Fix some remaining ad teaser issues

1. Disable interaction while in CAB mode

Bug: 10212376
Change-Id: I2206ef4336bc9a2538c236479df837caa5724e8c
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
2b55549d4fbe25e91f673a0727fc89ff755d9327 15-Aug-2013 Andy Huang <ath@google.com> move ad analytics to gmail

Bug: 9861033
Change-Id: I30bbf5ea7b9e2a2a03588263be1afc9909e16729
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
042a530b2296487fa5899a3e871214ac4a47e3d8 13-Aug-2013 Andy Huang <ath@google.com> more metrics

Reorg category/action/label to be more economical. This gives us an
extra slot for data vs. spending on custom dimensions in the future.

Log CAB actions, some settings state, drawer toggles, CAB mode start,
swipe dismiss, and peek.

Bug: 9861033
Change-Id: I16b30356db70f60ed87749f29ddd667790acbb07
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6c570db71b8adc43d7dc2f31e6fa63cf50c1426e 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Add new ViewMode.

Works in OnePaneController.
Need to wire up the buttons.

Change-Id: Ia9aa5e696cbba1d170038e47d4941cc6fcf0a967
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
121c8b877090e780b4a16d5a14507c3649e61d7f 05-Aug-2013 Andy Huang <ath@google.com> always confirm draft discard action

Bug: 10098652
Change-Id: I4984a38ef6c7d24f73a3a5e857108163f6bea1b7
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
2b9d80eb16156173f11a02eae4f770d8c975927c 31-Jul-2013 Scott Kennedy <skennedy@google.com> Change all resid switches to if-elseif-else

I really want to get this building in an IDE.

As per http://tools.android.com/tips/non-constant-fields, library
projects (like UnifiedEmail will be) have non-final R constants. They
are not final until packaged into the main application project's
(Gmail/Email)'s R.java.

As such, they cannot be used in switch case statements, and we must
use if-elseif-elseif-elseif-...-else instead.

"This is typically in UI code and the performance impact is
negligible."

Change-Id: Ie699c13e1becd51c59c1b2ea81bc902d4f2e28d9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f7c9d7d41b4cf6dfcca444ed7d9d6eeb216103df 12-Jun-2013 Scott Kennedy <skennedy@google.com> am caaeed38: Revert commits for old archive/delete dialog

* commit 'caaeed3837316175111bb16e6b60aeb0d523debf':
Revert commits for old archive/delete dialog
caaeed3837316175111bb16e6b60aeb0d523debf 12-Jun-2013 Scott Kennedy <skennedy@google.com> Revert commits for old archive/delete dialog

This reverts commit 1dab2bf735a942a0e45484cff8aec04824ac0982.
This reverts commit 32ecfdd22f45892a6341b11e80e6d59f563a6160.
This reverts most of commit b4cb510b1cef97580b0f29562aa7edc25257322b.

Bug: 9296856
Change-Id: I7206ab4b94109e758c9476880d41e7d3fe239e2e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
dd2ec688cf18e0ec132d936168ccaa3c43cdefb1 04-Jun-2013 Scott Kennedy <skennedy@google.com> Move to Inbox

Show this option in places where "Move to" doesn't make sense, like
All Mail and search results.

Add a new Account setting field: Uri moveToInbox
This contains the Uri to use for the "move to inbox" action, which
may differ from defaultInbox.

Bug: 9256654
Change-Id: I91062d6a602ed785d42cc52ed66712f134730755
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
2f542873183b37fa38a0d468f46bbfebc1f537e2 11-Jun-2013 Andrew Sapperstein <asapperstein@google.com> Reshow sender image teaser.

Fixes b/9375917. Now the sender image teaser shows
until cab mode has been entered or it has been swiped away
manually. Entering a conversation will not hide the teaser.

Change-Id: Ib3c6d56e4504680b513b2b56e9bcbc091a5da8aa
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b4cb510b1cef97580b0f29562aa7edc25257322b 06-Jun-2013 Scott Kennedy <skennedy@google.com> Show a dialog to discover the removal setting

The first time a user clicks "archive" or "delete", we will show a
dialog, asking if they want to see archive, delete, or both.

Bug: 9296856
Change-Id: Ibb88304eac66bb16a2f80622fb37cb9f57fcb6c6
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b905d08f25ca7255201c21aa8a504c9ffaf9c79e 08-May-2013 Scott Kennedy <skennedy@google.com> Menu items to spec + cleanup

NS: 2 in portrait CAB, 3 elsewhere
N4 (sw340dp): 3 everywhere

Bug: 8832952
Change-Id: Ie576a54331731cf07b8557e1e9c3a5d5619d8b0d
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
193e05a8c38b87c400ac594b53b54eb211d35602 05-May-2013 Alice Yang <alice@google.com> Add some logging

Adding more logging at INFO level for hard a hard to repro use case where
multi-select then archive/delete from menu highlights but does nothing.

Bug 7486078

Change-Id: I9a4647858c14e196f83c82fa98903f054bff2ba7
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ef91f8bc06c24014224d6129231ed0583dc719e8 04-May-2013 Scott Kennedy <skennedy@google.com> Don't show "Change folders" for unsupported accounts

Bug: 8808491
Change-Id: Id8b37f2ca37bc63810aa0834164f16f9b2f69f79
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
cd5de8b5aa8d812a5d12ab4e7d853fadd2df63b5 01-May-2013 Vikram Aggarwal <viki@google.com> Two options on narrow; Three on wide

In the CAB mode, show two options on narrow screens (so the unread
count is visible) and three on wider screens.

Bug: 8733601 Selecting more than one message in portrait mode is not
showing total number of messages selected

Change-Id: I5854d7856f85b485011b12b3749a069519ad2437
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
84fe99431df3b989dff9b363562f09fd2757b63c 17-Apr-2013 Vikram Aggarwal <viki@google.com> Fix ConcurrentModification

Selected conversations are cleared at the end of the action.
Rather than iterate through the hashmap and delete them one
by one, it is easier to do nothing for selected conversations
and have the destructive action clear the entire selected set
at the end.

Bug: 8636404 ConcurrentModificationException when archiving a batch of conversations

Change-Id: I49973da783c94dc1b019057ced09e11feac962df
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a85831df1721dda712be5154fb57404d8df1758a 13-Apr-2013 Scott Kennedy <skennedy@google.com> Allow configuring ActionBar items

Bug: 8606333
Change-Id: I98182899dd8117757b77e5a66e106f85c64356e1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
28f3d5c247927890a45880345b4bf6788f29a820 09-Apr-2013 Scott Kennedy <skennedy@google.com> DO NOT MERGE Enable "Move to" menu item

Bug: 8570161
Change-Id: I19c2368cac6fbe444757c17ad016934f511185b6
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ff8553f20964f4c31b0c503a9e1daff6ae08a9c7 06-Apr-2013 Scott Kennedy <skennedy@google.com> Cleanup

Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
d7d17b65dfdd2f8ed6a7f60e44ec9bda8e0debc0 27-Mar-2013 Alice Yang <alice@google.com> Hide "move to" menu item

Temporarily disable the "move to" menu item until it works with section inbox.

Bug 8480663

Change-Id: I2eba798dfa9d2e3f8a743aa149e5c2a487ed348d
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
962a6922af499db189ace88ed3ba518946764197 22-Mar-2013 Scott Kennedy <skennedy@google.com> Fix leftover issues from moving to a folder type bitmask

Bug: 8443606
Change-Id: If269b840604318b8da4342e8c1a5079fb54741ed
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
8c1058ee75ec4a5824a68c3c5275bc48d56bbad8 20-Mar-2013 Scott Kennedy <skennedy@google.com> Change FolderType to a bitmask

This allows one folder to have multiple types.

Bug: 8426563
Change-Id: Ide918a884cfb76022f3c03f5cc69adb149a964cc
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
aab9bc71f2d8742128361dff72f77543f81dde52 07-Feb-2013 Rohan Shah <shahrk@google.com> Support "Move to" functionality alongside "Change labels"

Cherry-picking Rohan's original change since I messed something up
while fixing conflicts.

User cannot move an email from one defined label to another.
Change label is a hassle to use to only select one and a
menu item for moving is preferable.

This change introduces the "Move to" as part of the overflow
menu. It allows for users to move emails from folders, excluding
Starred/Important.

Bug: 8157593
Change-Id: Iaf8660fb01f731f5cbcb2253a3768b0d7b429132
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
5c4db951d8f23d59866deaa49b31f8ff0c81d694 11-Feb-2013 Vikram Aggarwal <viki@google.com> Needs to go in UR8.

Revert "Support "Move to" functionality alongside "Change labels""

This reverts commit 0a4af34f6f4dce23a8c5b39e94fb91ff0f6260d1

Change-Id: I25d0311396033fb5759596e4a56792abb7f355fb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
0a4af34f6f4dce23a8c5b39e94fb91ff0f6260d1 07-Feb-2013 Rohan Shah <shahrk@google.com> Support "Move to" functionality alongside "Change labels"

User cannot move an email from one defined label to another.
Change label is a hassle to use to only select one and a
menu item for moving is preferable.

This change introduces the "Move to" as part of the overflow
menu. It allows for users to move emails from folders, excluding
Starred/Important.

Bug: 8157593

Change-Id: Ib5ae9f04b52f3f5d0f2d2ddb590219f7733cf171
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7704d79def5e5f36a1cbe22fbbe6e9520503899c 12-Jan-2013 Vikram Aggarwal <viki@google.com> Restore the CAB mode on orientation change

Currently, the CAB mode is restored only when the Conversation List
Fragment (CLF) is available. The CLF was needed earlier because we
grabbed views from the selected conversations. We don't anymore, so
the CLF dependency can go.

However, we cannot always restore the CAB mode, we might be in
conversation view mode on the phone. On orientation change, we want to
show subject view in the ActionBar, not CAB mode. So we need to check
the view mode before doing this.

Bug: 7742352 Selected message action bar icons (delete,start) are
missing from Gmail inbox list after orientation change

Change-Id: If6dcae413f07fe708c3cd6c970b2245b58c0a23a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
669947bf67a3d0eed377b18099bb873604ad5009 11-Jan-2013 Vikram Aggarwal <viki@google.com> Remove views from selected set.

The views were originally being used in the ConversationListFragment
to delete items. They are no longer being used now, but we still
maintain extensive maps and pass the collections around. We can stop
doing this extra work.

This does not fix any bug, but the cleanup was found while
investigating the bug below.

Bug: 7067964 Gmail: archives wrong message

Change-Id: I2b7d387fe5ab078b2006f27cc8167b354d0bb1c8
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b8c3171710b7f97247fd0c841ce95f5f515ef576 04-Jan-2013 Vikram Aggarwal <viki@google.com> Use confirm fragments for all operations

The previous change used confirmation fragments rather than dialogs
for actions on selected conversations. This change expands that to
all actions that require confirmations.

Bug: 6022869 Confirm actions (Deleting / Archiving / Send message) pop
ups are disappear on orientation change in Gmail

Change-Id: Id7714da8608816721089f46811be2688f34ae4f7
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6cadbfce032c5f8d61c873d91989bff1fb7cc4e5 27-Dec-2012 Vikram Aggarwal <viki@google.com> Use confirmation dialog fragments

1. Create a listener for the positive action in the controller to be
able to create on orientation changes.
2. Create a dialog frament for confirmation dialogs.
3. Hook up with selected conversations action menu for now, other
dialog objects to follow...

Bug: 6022869 Confirm actions (Deleting / Archiving / Send message) pop
ups are disappear on orientation change in Gmail

Change-Id: I206c8102d49df0a0f41198b7fd149fb711235a97
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
8f98ac013f775cdf186578018f926ac329070541 02-Oct-2012 Mark Wei <markwei@google.com> Prevent change folder dialog from opening more than once.

This CL has signification refactory that consolidates
Multi/SingleFoldersSelectionDialog.

Bug: 7247467
Change-Id: I1aacba68411d4b9cc586482d0f17c5c90df36e04
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
9eb1c9a76a400f84c002b58c831119119ebf4870 01-Oct-2012 Mark Wei <markwei@google.com> Prevent change folder dialog from opening more than once.

Bug: 7247467
Change-Id: I0b5583830d7c8c2f63e01714b4a7fa2976d0eefb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
84f7d32bdc79263004ed5241480988e02f8e618c 02-Oct-2012 mindyp <mindyp@google.com> We want deferred actions when doing anything destructive when a list is present.

Fixes b/7257433 Archiving from gmail label fails, but only on nakasi 3g?

Change-Id: I6e10d792f7f9ebd433072ad2af10d1f60eb90ef1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
e5e917c10cbc4afd31358c0425954e2c27e0fb8e 21-Sep-2012 Vikram Aggarwal <viki@google.com> Don't show two archive icons

Since both R.id.archive and R.id.change_folder correspond to the same
action, they have the same drawable: drawable/archive. Only one of
these is ever selected, based on whether we are in the inbox or in a
user label. The selection is done in onPrepareOptionsMenu, and one of
them is disabled. However, in the time between when the menu is
loaded, and when the actions are selected, the user can see two
archive buttons briefly. The solution is to remove one of them,
doesn't matter which one.

This fixes the issue of showing two archive buttons, but still has a
problem: When visiting a non-Inbox label for the first time, an
archive button is shown in the ActionBar and then hidden.

Fix b/7161358 Duplicate "Archive" icon displayed temporarily when an
email is loading in the Gmail Android app

Change-Id: Ibb9e0291ae8ca73063c4de80c37aa5aa894f54fa
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a7e154530add87e05d1fcee980e1a1fc34a456e7 18-Sep-2012 mindyp <mindyp@google.com> Lots of fixes to move to folder dialog.

Fixes b/6919987 bring back divided "move to folders" sections

Change-Id: Ia7d709c5cd1f8787e2e1083442aa4eaf50d6babb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a8e4318bb9921e2ec6045c5f7187a4b78c55fe10 13-Sep-2012 Vikram Aggarwal <viki@google.com> Remove listview reference from selected menu

Fixes b/7093261 delete not working with multiple selected email

The selected conversation action menu keeps a reference to the
listview, which becomes stale in one-pane when we show a conversation.
Going back creates a new list fragment, with a new listview. Rather
than keep a reference to a list view, delegate the swiping delete
directly to the controller which knows about the newest list fragment
and list view.

Change-Id: I8cdd43875c9e3f2c3a003eac8bea250acc7c5a19
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
9365a826b46b0e274df88e92534f7d871eef2aa2 12-Sep-2012 mindyp <mindyp@google.com> Make sure that if we have selected the current conversation we autoadvance properly

Fixes b/7149402 Respect Auto-advance to conversation list when focused message is in the batch that is archived
Fixes b/7148741 Change behavior for - Swipe to archive focused message in tablet when auto-advance is set to conversation list
fixes b/7148988 Auto advance to previous/next not respected in tablet
Change-Id: Ic033782dffc5982b20090a358b5b972e3d1abce0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
5574a693205d0f8be458134e540907b0c05046ae 05-Sep-2012 Paul Westbrook <pwestbro@google.com> Don't show disabled archive item, without archive capability

We should check with the account capabilities before showing the
disabled archive button

Bug: 7107997
Change-Id: I39399bab5783eea0ad7bb67232817e7d62831f58
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
54f120f6ada40c7191811dfff99b151e9e192c78 28-Aug-2012 mindyp <mindyp@google.com> Commit leave behind items when tapping account switcher

There is no onclick listener for it
or onshow for the spinner popup window
this is my best guess as to how to tell when it got tapped
when the popup is shown, the dropdown views will be accessed/ built
Dismiss when cab mode is exited.

part of b/6864248 dismiss leave behind on next action taken

Change-Id: Ib706f61a47356412cef73822a4a40453214d22f2
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ef3625472596326b910a4445307d1a8eb8c9cc3f 27-Aug-2012 Paul Westbrook <pwestbro@google.com> Added ability to discard drafts

Now the UI can tell the UI provider to discard the drafts for a conversation
(if the provider supports this capability)

Bug: 6315721
Change-Id: If786d13448fdce9a45a54a8762ee1b15e3f29bcd
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
c6adce3cf6887c4c6dd5005724565702751843d0 23-Aug-2012 mindyp <mindyp@google.com> Commit destructive actions when changing folder/ account

Fixes b/7031798 Gmail app crashing re-reporting since issue with previous report

Change-Id: Ie3380c6c5f0777e198f73d95ee6de29d4300f1b5
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
eccde435716f4771af124912e83db816a18f3410 20-Aug-2012 mindyp <mindyp@google.com> Use delete capability to determine whether to show delete for a folder.

Fixes b/7006885 add flag for "supports delete" / verify that trash not sending supports archive

Change-Id: Iea2597e120b15c0ab9452461d12af3179e325298
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b68e4aeb1997541eccbba115a9e848de1d70bf1c 17-Aug-2012 Mindy Pereira <mindyp@google.com> Delete and archive are not supported in the trash folder.

Fixes b/7004458 Undoing a deleted/Trashed mail doesn't bring back the mail to inbox ( Device in Portrait mode)

Verify the behavior on ICS; if trash is supported, then its trash FOREVER and there is def no undo

Change-Id: I1f36bb42b1f27b2d98047ffa0d24cc9cf492c1ed
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
14f64ec84173e5ee8b7157a74e8d62eff7693c19 15-Aug-2012 Mindy Pereira <mindyp@google.com> Use multi-model mode

Per @adamp

Fixes b/6977371 JOO40C: Exiting multi-select mode without checkboxes leaves one conversation selecte
Also, make sure we registered the listener before unregistering
I ran into an illegal state crash

Change-Id: I9d47bfa93caf26f17f4379c36f31cb9c32788859
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7c401b7896910c00e6234e8774aab0be45740d32 14-Aug-2012 Vikram Aggarwal <viki@google.com> Get the Account through a listener

Every object that needs an account gets it from the ActivityController
by registering for future updates. This should reduce some of the
headaches with account objects going out of sync.

Fix b/6969950

Change-Id: I0449b482ecd84bdb947304db5f0504c77dd1dc7a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a41a57a186b84f98b497e109cff94aa3c1362697 14-Aug-2012 Mindy Pereira <mindyp@google.com> Fix archive menu item open issue

Per UX: hide archive on tablet, disable it on phone
fixes b/6497472 update menus in mail to match jb specs

Change-Id: I202a6151f673b32206fc89907cbe5febd21d85a0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
50cfeda191d0744d61d278890763c8d261389e03 14-Aug-2012 Mindy Pereira <mindyp@google.com> Fixup menus for tablet.

Fixes other part of b/6497472 update menus in mail to match jb specs

Change-Id: Ic114397b621d97ceb5299e40431a6b6939c30f9f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
9ba4251297f1645af2490fcc2dc43f5063e12a29 14-Aug-2012 Mindy Pereira <mindyp@google.com> Make sure phone menus match spec.

Part of b/6497472 update menus in mail to match jb specs
specifically to match phone specs
Change-Id: I0c41f137107f69d2e241787ed500d63aa5da2de2
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
01f30509c4c8ad0d13b7635447b7f023c7a0cab7 14-Aug-2012 Mindy Pereira <mindyp@google.com> Show remove folder option in user created labels.

Fixes b/6977686 User created labels don't have Remove label (archive) icon

Change-Id: Icecada98ac11e66f622fbac80991a481873eed18
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b807337282fb19d1a38cdbe092a2f472b0e30321 09-Aug-2012 Mindy Pereira <mindyp@google.com> Dont show trash in trash...

Fixes b/6960345 Trash label displays trash icon and swiping deletes

Change-Id: I0d828fc34bbf2cb596689cc3805e9211f3951a39
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
66bc2aaf76bb0dfa4fc38f8fcbaaf9e413e321dd 02-Aug-2012 Vikram Aggarwal <viki@google.com> Update when a conversation is viewed.

Change-Id: I1c424a89fef2dcbcb882e8741eda0d6470b68b87
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a832d3d68a44579e379d1740913975995d137cba 27-Jul-2012 Mindy Pereira <mindyp@google.com> If there are no foldres on a conversation, it must be a 1 to 1 mapping.

In which case, the selected folder is the folder we are currently viewing.

Change-Id: I89b905d9a17d5eeef9e15502aa0ce5b26caf88df
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
192fac189e6aed434556a4e37bd3c5c29ef02f29 26-Jul-2012 Vikram Aggarwal <viki@google.com> Eliminate some poor pager/list/destructive action interplay.

Change-Id: Ib7f3a7dfd194fe7f5df0f59b5b2989d31b55a631
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
de3e74a82043733243c7391d7f983a5af8842891 24-Jul-2012 Mindy Pereira <mindyp@google.com> Show animation when destroying items via the swipe action.

When the user checks a bunch of items then presses (archive for gmail)
the button corresponding to the swipe action, animate them out to
the right.

Fixes a few issues introduced since I last touched this code
Starts the animation duration at 500ms for swiping out to the right
Makes sure positions are properly set
Makes sure the destructiveaction doesn't get called until the animations
are complete.
Change-Id: Ia024cceb703fc881d40ddbe393278aa2aec67311
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
839ada22ea84251dde3305003d2f8fc5bf14914e 21-Jul-2012 Andy Huang <ath@google.com> save/load conversation state, add granular mark unread

Centralize mark read/unread logic in AAC.
Restore some conversation view state upon rotation.
Clean up code for star/unstar from conversation view. Move most
of that logic to AAC.
Move transient conversation state from Message into
ConversationMessage subclass.
Add new AsyncTask for content provider single or batch requests.
We should move to using this instead of AsyncQueryHandler or a
raw thread.

Bug: 6293711
Change-Id: I907a687ef7ff287fece8c90725dbd204a02485e9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
8937bf1552a86853efc798a4d8df34c01115cdfd 23-Jul-2012 Mindy Pereira <mindyp@google.com> Commit leave behind items on view mode change, conv selected, cab mode exited, any new action.

Future CL's will handle animating these out nicely, once
the animations are decided upon. Currently, they just
disappear.

Change-Id: I1a1ee0ed3be0a684c2838f25d804e8fb2b1fbfc7
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6c2663dc9cade8aff34c462d244e3d72c475c664 21-Jul-2012 Mindy Pereira <mindyp@google.com> Update conversation read state on the ui side.

Change-Id: I372464e23c39131b45c20ad8bd72ddd6207a1bb5
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
76b2062b8c6d18a7b3a05292c385b47b0fcbd09f 12-Jul-2012 Paul Westbrook <pwestbro@google.com> Support for report phishing

Bug: 4161858
Change-Id: I8b12cfde7e19e388ece83c4df3069f1f65445945
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
77eee625cd8c317c605acfd06cd3a7e22120a0fd 10-Jul-2012 Paul Westbrook <pwestbro@google.com> Support for "unspam"

Also added start of phishing support
Change-Id: If8eb389c2dcc8c285a582504b8213ef676848a30
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.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/SelectedConversationsActionMenu.java
0e091c52d3a0135afb6904f78e06554567bfe591 31-May-2012 Vikram Aggarwal <viki@google.com> Enable read <-> unread toggling for selected set

Fixes b/6332838

Change-Id: I3c3965d9f30b3b4f1e422be83ec0f4c0615eca3e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
4f4782bcc53e13b30f1fd417beb1a6c04a54faed 30-May-2012 Vikram Aggarwal <viki@google.com> Rely on ConversationUpdater to perform deletes

Change-Id: Id0db0d9c479ccab477091629464bbb5d302f52fb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
531488ed848766708252a5fdc01c4ecf0fd167d1 30-May-2012 Vikram Aggarwal <viki@google.com> Remove all bad ideas from SelectedConversations

1. Remove references to AbstractActivityController and
ConversationCursor (yikes!) from the selected conversation set.
2. Create a new interface for delegating all changes to conversation
state.
3. Consolidate FolderChangesCommitListener with interface created above.

Change-Id: Id1d982a19eb2d26c51aec661cee5dc23ef98c110
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
a6b671dd9f5ba358a05888b3ab3bf1c5cb5cf493 25-May-2012 Marc Blank <mblank@google.com> Only move selected convos if from same account

* Add accountUri column to Conversation
* Also add IS_VIRTUAL capability to Folder (for combined folders)
* Check that all conversations to be moved/relabeled from a virtual
folder are from the same account

Bug: 6280990

Change-Id: Idfc5b3017b16a9f8c1ae5063ba22c66f89d8ca4f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f3a455644f0899a01fff4782811fcff473f9aff0 25-May-2012 Mindy Pereira <mindyp@google.com> Make sure we clear the selection set when destructive batch folder ops are complete.

Change-Id: Ic9a69a1cbcc00f72dbf8b0dee44f0da6f0be6afb
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
d503df4f0c31bbf842c6a1d3cba18df8c074bf67 11-May-2012 Vikram Aggarwal <viki@google.com> ActivityController commits folders, nobody else

Change-Id: I3ff870f275821ebc3cd08cfad0875eb229094f2e
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7f602f7a64f176894ccb7942a6642f22584c3894 01-May-2012 Vikram Aggarwal <viki@google.com> Synchronize destruction and remove dead/deprecated code

Change-Id: Ia86449494cca7d4ed5e2d9d515d8afa3dd94b68d
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
41e6e71568a0e7a32ebeaf909a4f6cb3ba4f47cf 24-Apr-2012 Vikram Aggarwal <viki@google.com> Controller owns the FolderSelection Destructive Action

This removes all Destructive Actions from the
SelectedConversationsActionMenu. Now, the controller is the only
object that creates Destructive Actions, and hands them out to others.

Change-Id: Ibb16cd09dda3d5382acfece5e63f341fba26bf85
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
e8a85328eadff76fcd78141f1343bde0a1cd27e7 24-Apr-2012 Vikram Aggarwal <viki@google.com> Register SelectedConversationActions with Controller

The selected conversations action menu gets a destructive action from
the controller. The controller takes care to perform the destructive
action before swapping a conversation cursor.

Change-Id: Ibc98ef92b60d5782103b8a18aa39fe2b82a5814b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
09a4bfe3f81ee216b5c4a4e2d083432a4e387abd 23-Apr-2012 Vikram Aggarwal <viki@google.com> Destructive Actions. Part 1

1. Change ActionCompleteListener to DestructiveAction.
2. Call OnePane and TwoPane objects DestructiveActions instead.

No functionality change.

Change-Id: I492de83bc9e49948a4dabcfc5e8438220339fc46
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
bf232c3735f65b1a4746943e4a134e59e36f0bde 18-Apr-2012 Paul Westbrook <pwestbro@google.com> Major refactor of ConversationCursor

* ConversationCursors are now associated with a particular loader;
there are no static methods or static state fields
* ConversationCursorLoader maintains a list of current loaders
(for tracking/debugging)
* AbstractActivityController acts as a router of conversation
changes to/from fragments (currently message view -> conversation
list)
* Comment out some ConversationCursor tests for now

Change-Id: I9b8425a19c77501796b6681142e1bc0ad20b3693
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
cf164d64bcb1da92b427bda99b97f7ec310ef704 20-Apr-2012 Marc Blank <mblank@google.com> Revert "Major refactor of ConversationCursor"

This reverts commit 5150f03723af8019169aeed8e406784da9c5f8f1.
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
5150f03723af8019169aeed8e406784da9c5f8f1 18-Apr-2012 Paul Westbrook <pwestbro@google.com> Major refactor of ConversationCursor

* ConversationCursors are now associated with a particular loader;
there are no static methods or static state fields
* ConversationCursorLoader maintains a list of current loaders
(for tracking/debugging)
* AbstractActivityController acts as a router of conversation
changes to/from fragments (currently message view -> conversation
list)

Change-Id: I0eb554615b4bf93b3547ff28e2bd5913e8703a97
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7d81600cbce3cfd366cbff9ecd1b7317ff957221 18-Apr-2012 Vikram Aggarwal <viki@google.com> Update consumers on changes to Settings

Change-Id: I96ed21a16c0dfb290198d2236fee8d21e299ec31
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
3c375282f64ef1a1565382f101bb3d96f6a1dec3 12-Apr-2012 Vikram Aggarwal <viki@google.com> Notify dataset changes on destructive folder actions

Change-Id: I50912407b20d31fd4f6c74e35270648016d8ef46
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
72ef2e7ce576ad13ce6179a6a8c74f8ecad9ae85 04-Apr-2012 Vikram Aggarwal <viki@google.com> Transition to next conversation correctly

This brings in the ConversationPositionTracker class from Gmail.

Change-Id: I0df56c4c433a18bce5dd93faf7e674b5585bd978
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
b54a46756017c81a9f253df4d4e8f967f137f803 11-Apr-2012 Vikram Aggarwal <viki@google.com> Recycle views in AnimatedAdapter

Change-Id: I47d0ec26d827282ae21529837655d260cc99522b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
0963ef8394e1f0bca3f931f930b127b00790361a 10-Apr-2012 Mindy Pereira <mindyp@google.com> Move undo up to the controller level.

Change-Id: I1fa2d921132c0d66c677b428f570c60672471ad9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
04dc819886abc2e4f56e644b03449e29cdbae2d0 09-Apr-2012 Vikram Aggarwal <viki@google.com> Do not clear selection for non-destructive actions

Change-Id: Ie38119b1ceede61d810c354deba3348126d406f7
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
07118a01f7183645957010779222b84930f75b4e 03-Apr-2012 Mindy Pereira <mindyp@google.com> Make batch archive conversations fly out to the right before shrinking.

Change-Id: I0a62d837acf0e41ad6fe012a87dbde29e0cf2f17
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
e128fc21fab03f6d66c656efeee2155fab449a7f 04-Apr-2012 Vikram Aggarwal <viki@google.com> Clear selection set when viewing messages on one-pane

This is missing one crucial functionality:
In conversation view, if we perform destructive actions on the selected conversations, the
selected set is not accurately updated.

For a correct implementation, we need a ConversationPositionTracker class, so that will be solved
in a second pass.

Change-Id: Ie9909ce026c4ec1148b4817d6968699b392e2330
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ad6d6282136b54090f1bf80ff5d37056ff5907c8 28-Mar-2012 Vikram Aggarwal <viki@google.com> Back/Done clears connected state

This fixes two bugs:
1. Going back or tapping on CAB 'Done' will clear the selected state.
2. After destroy(), the selected state is empty, so the deceptive code in onDestroyActionMode
will never be called. That code is removed.

Change-Id: I5365a8e21b4ef81e005587a39eccc7de85cff24f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
5b84f41e055135a5733c28a5d234ef944d04498d 25-Mar-2012 Mindy Pereira <mindyp@google.com> Setup rules for when to display/ not display folder labels.

Allows us to pre-display label changes on the ui side.
Rules are as follows:
1) if the current folder and the folder added on the conv are the same,
don't show the folder in the converation item
2) if the current folder is a system folder and the folder added on the conv
is also a system folder and they are of the same type, don't display it
(covers priority inbox and inbox)

Change-Id: Icb7b7f0e8b31ac1ddfb858d5e5961132a064186b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6778f4663a790d3e9d4c6a2f43292eef43c1e0bd 24-Mar-2012 Mindy Pereira <mindyp@google.com> Conversation unread + folder changes.

Marking a conversation unread should force the user to advance
to the next conversation as set in auto advance settings.
Make folder changes show up immediately in conversation list.

Conflicts:

src/com/android/mail/browse/SelectedConversationsActionMenu.java
src/com/android/mail/ui/FoldersSelectionDialog.java

Change-Id: Ib9c21931a3edd4b624ec5f2b853dc1988ec29d5b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
c9d59184da271d5a6974edb709e3b39a5a970fa7 23-Mar-2012 Mindy Pereira <mindyp@google.com> Fix up conversation menu items.

Make sure the correct conversation items are shown/hidden
Fix mark unread.
Fix mark important.
Change-Id: I7e5fa60d9501bb123cdd2276afd68c26e300dc3d
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6f9833afc7f9ea1512919948a5aecac954deca72 21-Mar-2012 Mindy Pereira <mindyp@google.com> Check for the uri as a string instead of as a uri.

duh.

Change-Id: I864aa0174c378eebaab004efa2497c86be9be0df
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
6fbc87affe46f6d49c584a307ec836e68163c182 15-Mar-2012 Vikram Aggarwal <viki@google.com> Folder selection, muting, and reporting spam

Change-Id: I5266914bc769ff59cfebb9782c2aeac3b9faf859
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
81f1128a98aeff32b2393eb1b97ab4f43971e394 16-Mar-2012 Mindy Pereira <mindyp@google.com> Dont clear selection until animations are completed.

We use the selection to see what we actually want to undo on/ delete.

Change-Id: I840e4ededc3b28a09e2c8f2b49217d0b3a9e993b
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
54452ae7a9cdb607ed1db5e74077b5ebd95c46a2 13-Mar-2012 Vikram Aggarwal <viki@google.com> Conversation menu actions delete/archive and read/unread.

Still to be done:
1. Conversation move to next/previous/list
2. More conversation menu actions: mute/report spam/...

Change-Id: Ifcec13af338b9980bc41ea529ff411f860baa4ed
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
efe3d25aa19da172fd5c3ec39539cdd91f29e927 01-Mar-2012 Mindy Pereira <mindyp@google.com> Destructive action dialogs.

Use delete/ archive settings to determine if we should show a confirmation dialog.
Show confirm discard dialog in Compose and actually discard.

Change-Id: I992bdf598af72a62deadfdfe695a64b89fad5c24
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7f0a962513503cb01aec093b14c1b48dfae08f12 01-Mar-2012 Mindy Pereira <mindyp@google.com> Hookup ui for marking a conversation important/ not important.

Change-Id: Ic699aa172adccb335d67978abf4c0bd95d958a61
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
334e64af904085984cdcbecbcbc18cf488a9ceae 23-Feb-2012 Paul Westbrook <pwestbro@google.com> Add support for archive/spam/mute

Add new operations in the UIProvider for the providers that
support archive/mark spam/mute

Fix animations for userdebug builds

Change-Id: I2e6372095f7ce6d29d37768e1075a098ca3a7646
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
830c00f18b199f4eb2b2cc05b7038b8b05d8eca9 22-Feb-2012 Mindy Pereira <mindyp@google.com> Add mute/spam.

These only show when the account supports the operations.

Change-Id: I2e4852f748ee4653ac8593a6df5f74308cdefa53
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f98b318572750dae998a55a60199598933770b68 22-Feb-2012 Mindy Pereira <mindyp@google.com> Seperate undoable ops (destructive) from not undoable (not destructive)

Added archive, folder changes that delete conversations
Set archive to only show if the app supports it.

Change-Id: I85babea1083a41168a6f036dddb4abad707e629f
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
7ad3b8756b39674b293a8fc821623c9b92990811 22-Feb-2012 Mindy Pereira <mindyp@google.com> Correctly set the text for undo bar actions.

Change-Id: I82c978e62830d34c6e2ee92a418bf97c44293dd4
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
0825efd09986173b90d7c7d45617fb22d18b1b96 16-Feb-2012 Mindy Pereira <mindyp@google.com> Fix up conversation label change logic.

This wasn't working correctly in the test app, and that is what
I think we should be maintaining from now on.
This handles crashes, passing around account, selected conversations.

Change-Id: I86242c980945771c73ce57c642e3f70fece4e3a9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
febeb5fd53b0041e3d3b74ff6e3ba414475b2b31 15-Feb-2012 Mindy Pereira <mindyp@google.com> Correctly add/ remove stars mark read/unread based on what is selected.

Change-Id: Idf14507cb53fc6fab1d8b4ed356dc1dab3c93404
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
4f166dead6323b6fd21c76cef66174c6cd4bf11c 14-Feb-2012 Mindy Pereira <mindyp@google.com> Dont delete conversations automatically after a label change.

Only change them if their labels/ folders no longer contain
the current label/ folder.

Change-Id: I40b0a8aa5e7206962fef62d23d0cd1cef2b7d341
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
cd8bf0a4c081f95ac8666025adb85d4908c2018a 14-Feb-2012 Vikram Aggarwal <viki@google.com> Allow RestrictedActivity to return the context of the activity.

Change-Id: I5b1553e7c034523000dddd60fb9a90239c178cb0
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
67d75721f73844754220e5e81a23c32a62be1723 13-Feb-2012 Mindy Pereira <mindyp@google.com> Make sure we check the correct initial folder(s)

Change-Id: Ie728111edbcfae0ce6bc85dfefe6d2188f730485
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
d247dc966bca1ed303039c2893c54979d448a336 11-Feb-2012 Vikram Aggarwal <viki@google.com> Allow batch selection of conversations.

Change-Id: Ibaa7e96154b8c433651d9e8ef68f7973b92b7ac9
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
293ee6858b5b2b049610992114aa82495631a246 13-Feb-2012 Mindy Pereira <mindyp@google.com> Make sure we check the correct initial folder(s)

Change-Id: Ib6881dbf5927d655dc1c7dd1bb2a53d7384303af
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f3dfb15b47aabd56fa7b7c99685ba6fad1d7e931 06-Feb-2012 Mindy Pereira <mindyp@google.com> Refactor the change folder dialog.

This was getting much too large.

Change-Id: Ic1a46d22ebb5d02346b0f32ee5c63f9aa7083bdd
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
f45a635b941849fcf1f39cfac220cd2a156ae44e 04-Feb-2012 Mindy Pereira <mindyp@google.com> If the user presses cancel when moving a conversation, do nothing.

Change-Id: I17d4e1444ad6712656e7259a33fbf4e92e1346c1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
72d825c727d3b2ccf256bf41203b249c5399c3ff 04-Feb-2012 Marc Blank <mblank@google.com> Check the CAN_ACCEPT_MOVED_MESSAGES flag in move dialog...

Change-Id: I53c8b4e752bb9f72921e4ab2e1ca9658f1a50744
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
ce53818e1e185a845bd2f7f601c20e7085b40725 03-Feb-2012 Marc Blank <mblank@google.com> Support string updates & update-with-local-delete

* Works for Email "move to folder"
* Moves animate away (like deletes) - yay!
* See TODO's for Gmail support

Change-Id: Ibb75fb1c3c5ac3df32f8f1da93274313299170da
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
d92e9f3d45cfedd3ebfedcf0805283007053e091 03-Feb-2012 Mindy Pereira <mindyp@google.com> Show different dialog based on single or multiple supported folders per conv.

Change-Id: I42db5fad5e1e2d3951f91f843ca46d8d58c80cb2
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
30d2d329418045d1f6af60877fa14183ec28ead4 03-Feb-2012 Mindy Pereira <mindyp@google.com> Show folder lists.

Single selection for accounts that dont support multiple folders per conv
Multi selection with checkboxes for accounts that do support multiple folders per conv.

Change-Id: I3ff6e9a5be104a10cead271c64e0383c61488539
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
8a77f8b15c32077480a27a00e759b93f05634b79 03-Feb-2012 Mindy Pereira <mindyp@google.com> Notifydatasetchanged AFTER deleting items in the synchronous conversation cursor.

If we do it beforehand, then the items just come back, since they
are no longer marked as animating.

Change-Id: I9a81068dc3ce2d5f0702c59f4d6583693f883c04
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
96b5c357860f46a7bd5f867774a53d5cc5069def 01-Feb-2012 Mindy Pereira <mindyp@google.com> Undo logic.

Change-Id: Iba82ec2c654802f4583346ffc614ba91622fe6a1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
fac92d71ad83a34eb200cd9bcb773642e5e58de2 01-Feb-2012 Mindy Pereira <mindyp@google.com> Remove the animated list passthrough for action complete listener.

We don't need it.

Change-Id: I1389f0b78d2fd11ec91ef169b195cee6f5bbd449
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
03bbaadd114b39cdac91be7384d1b311db67c7c5 31-Jan-2012 Marc Blank <mblank@google.com> Remove code that's no longer needed

* Redraw list (for now) after updateBoolean for setting star
and read on selection sets.

Change-Id: Ia4b482841bbc0f0a9cf516d68aa9d4f63e7510e1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
9879d4c74520800eff386ab27eb5e03432c610b5 31-Jan-2012 Mindy Pereira <mindyp@google.com> Do a ui driven version of delete.

this is round 1; will need cleanup.

Change-Id: Ic60b64488f741c085b4079211f9ff1c53c554ee3
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
8d69d4e10a9a36ff790babb2f3a098a12d0dc732 25-Jan-2012 Marc Blank <mblank@google.com> Enhancements to Conversation/Cursor/Provider

* Added methods in Conversation for doing batch update
and delete (e.g. from selection screens). The batched
changes reflect immediately in the conversation provider
and are then executed in a single transaction in the underlying
provider.

NOTE: If called from the UI thread, these operations will
not block (the underlying provider is called on a new thread);
it's expected that update/delete will almost always be called
on the UI thread. Where the result of operations is needed
(i.e. a Uri return from an insert), synchronous operation is
required; this can be done by calling on a non-UI thread.

* Support for selection -> add star

* Also, quick and dirty implementation of read/unread, both
by reading mail and by using selection -> mark read

Change-Id: Ia060cdf21b2f9f3960315c746e81c04ae3afc6a1
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
d3818654c103802704fc788cf9c6775d25b65bff 25-Jan-2012 Mindy Pereira <mindyp@google.com> Clear selection after a destructive action.

Change-Id: I4e6faed97452ccb5ec0ef3d37f2c9a72b1d406fe
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
1ddcf0f2bf44d3c9db89112ef52510d9b2433ac4 13-Jan-2012 Vikram Aggarwal <viki@google.com> Adding more ActivityController dependencies

ui.ControllableActivity added from Gmail.
One pane layout files brought in.
Minor changes to make everything work with the test activity.

Change-Id: I8cacd5f36394fe4a786590e2e381369a3afb5494
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java
11b0bbdf024ec1413f90b2baac2c18a8f1c01d71 24-Jan-2012 Mindy Pereira <mindyp@google.com> Add selection set delete.

Now, when the user taps the checkbox on a conversation,
they can use the conversation selection menu to delete the item.

Change-Id: I18b58f4e25ac018621c8aa3330c5717da91c8913
/packages/apps/UnifiedEmail/src/com/android/mail/browse/SelectedConversationsActionMenu.java