History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
599c3cfaeff6ff519b08467a3fcd96fb33c0e1e1 26-Sep-2013 Scott Kennedy <skennedy@google.com> Fix a NPE

It is possible we had no Folder here.

Bug: 10933284
Change-Id: I280d55df2ee7bac5e839954f426b262821e3166c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
0e8dc84326ad3e6d146a203538665f98dd98f688 10-Sep-2013 Scott Kennedy <skennedy@google.com> Hierarchical folders in conversation list

Use something similar to the sectioned inbox teaser.

Allow expanding/collapsing when there are too many folders.

Bug: 9604590
Change-Id: I6cc79bd7c033bbf13c750e7720fe71227b38cc85
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
8f28e11e791662148e4729e9e58993e437550ec0 18-Sep-2013 Tony Mantler <nicoya@google.com> Show the conversation list footer in spinny mode when the cursor is null

b/9177086

Change-Id: I625af980fd7aee03950e28086e8455627be6a8da
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f77806ed36ab49861a5ea13a3ab34e5a3a21c022 30-Aug-2013 Scott Kennedy <skennedy@google.com> Remember our scroll position when we return to conv list

Do this manually until we have a real backstack.

Bug: 10533759
Change-Id: Ia97950837aa060d374e0a015eb1ff5db1cc3392d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
32ddb84f2d4f53bfc4b53656461068c0c69d6325 29-Aug-2013 Scott Kennedy <skennedy@google.com> Fix a couple ad bugs

1. Show a new ad when we leave the conversation list and return
2. Do not show a new ad immediately after dismissing an ad
3. Eliminate some GCs and logspam
4. Don't send up a "shown" operation on rotation.

Bug: 10499269
Bug: 10531721
Change-Id: I7e366bd2f1bde5f50764cc3240ac0870a4eda49f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e0d01fb7379225a0f058999d9da9050f2fcc6945 20-Aug-2013 Scott Kennedy <skennedy@google.com> Show the selected state on an ad on two pane

Also show the selected caret

Bug: 10212376
Change-Id: I075b2aebfbe869c658108f7d36109ad70402b4c7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
761522c1ac7a8fa05acde714f0e26fde47f3415f 08-Aug-2013 Andy Huang <ath@google.com> basic analytics support

Bug: 9861033
Change-Id: I940e25dc12a7cbfe91b1d5ec457c7fc1045171df
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c190b1ed6bbbc7ba091dda27fba343ffc92ccdf5 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Merge "Add new ViewMode." into jb-ub-mail-ur10
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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
5dce146160e82e2087174e5971365a8ac0183b52 05-Aug-2013 Scott Kennedy <skennedy@google.com> Fix CAB mode with no sender images

Select the conversation, rather than peeking.

Bug: 10183984
Change-Id: I4068f3ca52dee226a8391af4f8d9f5fe24964070
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9ba7fba9213027c6f763001d32d4c88f0d086388 31-Jul-2013 Scott Kennedy <skennedy@google.com> Add peek support back

Bug: 9592097
Change-Id: Id3fe6746bd616ffac03da9e8385b2cc2c10ee826
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
17fcc1e767958c0da28004a0d98a4448c5e6945a 30-Jul-2013 Scott Kennedy <skennedy@google.com> Merge "Ads in conversation list" into jb-ub-mail-ur10
103319aaed26bce257de55b2fe93d4f78d3c59b9 26-Jul-2013 Scott Kennedy <skennedy@google.com> Ads in conversation list

Change-Id: I3095409211d6a6bdc42212bcd6a330333a9da411
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c5567737cb40ca156ea89f169a23008524ebd1a4 30-Jul-2013 Alice Yang <alice@google.com> Tip for long press to enter CAB

Bug: 9859881, 9572851

Change-Id: I1603651084fb9ded479af69e17bd54cdab693c2e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
3b965d78774a42358ce6bbdcc43b4c8df130a60e 25-Jun-2013 Scott Kennedy <skennedy@google.com> Clean up a bunch of warnings

Bug: 9565838
Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
48ccbc53ef90bf6420f831f63e6243008e02a346 06-Jun-2013 Andy Huang <ath@google.com> Don't let ConversationCursor do work during scroll

Bug: 9032162
Change-Id: Id47fd9c2a1cab01b798a0c24a5802a3d059d5c70
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
da954c000080442f655ce250b3780d1bf249f024 18-Jun-2013 Andy Huang <ath@google.com> am b2354b97: Merge "Fix list caret and highlight sticking when scrolled down" into jb-ub-mail-ur9

* commit 'b2354b97887559e21938ae2e182bfd568578fc47':
Fix list caret and highlight sticking when scrolled down
f0aebd32d750d6e108c8f9b551b1760682123ebb 18-Jun-2013 Andy Huang <ath@google.com> Fix list caret and highlight sticking when scrolled down

Manually clearing list item activated state wasn't working because the
item position was mixed up with list view child offset (not the same
when you have a non-zero scroll offset).

Turns out that ListView can manage this for us more reliably if we clear
the single choice using setItemChecked() instead. Hooray.

While I was in there, I disabled list caret entirely on portrait tablet
so it doesn't appear during the animation, either. Much nicer.

Bug: 9074494
Change-Id: I1f976797a81d3a5f49dadd3b5e93bdd103c250fb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e2be97a58fbae98b95e51735c6468d121e465355 21-May-2013 Paul Westbrook <pwestbro@google.com> Minor changes to reduce allocations

Don't use anonymous inner classes, as these objects would get
instantiated for each usage. (This could also cause the containing
classe to remain referenced

Initialize Bundles and ContentVales to the ideal size to prevent the
objects from being resized

Change-Id: If83ad94f67149d54847c3cdb5244e1841d7b369c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
37a20ca39be842b4b4cb54d5b5ed418d49d950cf 06-Jun-2013 Vikram Aggarwal <viki@google.com> Fist cut of nested folders

1. Rename FolderListFragment.FolderListSelectionListener to
FolderSelector.

2. Allow special views to be tapped; all existing special views
disallow taps.

3. Allow nested folders in ConversationListFragment. The adapter is
responsible for populating the nested folders above the
conversations.

4. Add a nested folder special item for the conversation list. This
reuses current resources and is particularly ugly. The ugliness
will be fixed once we have a UX spec and real assets.

5. The child folders are loaded through an ObjectCursorLoader in the
ConversationListFragment.

Change-Id: I5eb566d7a1f87c1a11fc6961378d00650a27007d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c1922a93fb9540d4ff8c28a30d1ae58d3a3d73f9 13-May-2013 Andy Huang <ath@google.com> Fix undo when auto-advance is not set to 'list'

Auto-advance broke undo because undo did a sequence number check before
doing anything, and a side effect of auto-advance is to mark the next
conversation read!

Added more toString() logging to assist improve 'dumpsys activity'
output.

Bug: 8877688
Change-Id: I54597c4511780651a3a043a7752191cbad6fa1b9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
427df9dd776048541c0cb1aef583a41c3e9b3ccc 15-May-2013 Andrew Sapperstein <asapperstein@google.com> Rename some variables to be more explicit.

Change-Id: Icb8c10b39075ff9c8a513c18345ab7dbcd288189
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
2102b2c87a6cb39bc63fb7eff13dda64da56b72e 03-May-2013 Mark Wei <markwei@google.com> Add teaser for new conversation photo checkboxes.

The teaser shows up for the first time the user sees the conversation photos. If
they change to no photos, and later change back, the teaser comes back.

The teaser sits immediately in front of the first real conversation item (unless
other special views also try to have the same position behavior, in which case
the current implementation gives undefined behavior dependent upon which special
view is added to the adapter first).

Bug: 8772762
Change-Id: Ica79482f2a2eae0cf3409f6accb7ae5b0fc0fd45
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
03752f3a42e2cfb54c3873c12739982cb16b58d5 06-May-2013 Alice Yang <alice@google.com> Logging for sync bar not clearing

Bug 8533662

Change-Id: I6b69b823dec9f461ab831cb698cc4a0fae356bf8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c36fa728616d2338ff2ca8e9d9c755c2008617cf 05-May-2013 Alice Yang <alice@google.com> Swipe to refresh for empty conversation list

- Enable swipe to refresh when conversation list is empty by moving
the "empty_view" text view to be a child of ConversationListView, and
override the onTouchEvent of that TextView to always return true, so
"move" touch events get dispatched.
- Animate the pull to refresh hint text up over action bar (instead of fade).
- Change font and color of hint text per latest UX spec
- Disable swipe to refresh in CAB mode

Bug 8653364

Change-Id: I9a017d39e942e2ffebcf257e697b93515c161ee4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b0be3fcbc7b9f99cc6fc0a01e517b0f83e67c1f0 03-May-2013 Andy Huang <ath@google.com> tablet visual tweaks. more caret.

bump the star up a bit on 'normal' and 'spacious' layouts.
add back the caret for tablets.
because the caret is drawn as part of a list item, move the edge effect
line into the list item as well so it draws underneath the caret.
get the divider between selected list items appearing again by using a
9-patch instead of a solid color.

Fix an issue on portrait tablet where the last opened conversation would
stay blue in the list. The activated state wasn't being cleared on view
mode change.

Change-Id: I616f5d2b9eb9506995a74a4772ab7f50f95b2a33
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
586f2e72bf9891974dc2bfedff61cfc58507af67 01-May-2013 Andy Huang <ath@google.com> harmonize all blues, remove impostor assets

Purge assets that are various shades of blue in favor of using colors.
Per visD, remove conversation list shadow on 2-pane. This saves the
hassle of baking in shadows into all background assets.
Remove wide-mode background assets in favor of phone versions.
New darker refresh bar assets. No more need for a white frame.
Add shadow to drawer-less folders list.

TODO: delete wide selectors and assets.
TODO: implement caret on tablet.
Change-Id: Iecec3eaaa3c37b856cbed64d2b53ddf77a00582f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
76d20657374ba16e2d4fdc8319057068cfcefcf6 24-Apr-2013 Alice Yang <alice@google.com> Prevent an NPE

Bug 8701990

Change-Id: Id54242548c31607b8989504b52d4c2b08e80c229
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
d4f2287a529ae743955700f318f60bb5b6c02bc0 20-Apr-2013 Rohan Shah <shahrk@google.com> DO NOT MERGE Remove drawer jank and load less aggressively

Added an observer that only allows account/folder
changes to continue once the drawer is closed to
avoid jank/awful fps that we saw before.

Bug: 8661186
Change-Id: I79a212dea138a84dcd903ef88f96befdd0f668b9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
20323162495d149ea1ee101256d580d887a8cd45 17-Apr-2013 Alice Yang <alice@google.com> Swipe to refresh tweaks

- Added the hint text "swipe down to refresh" and "checking for mail"
that gets displayed in the action bar (It's implemented as a view drawn
over the action bar)
- Use custom asset for the progress bar with internal padding removed so
that it now aligns to top of the conversation view (no more gap)
- Change the distance threshold based on device height
- Disable swipe to refresh in search results page
- Only show "refresh" icon in overflow menu (for accessibility)
- Added fade in and fade out of hint text

Bug 8568176, 8568452

Change-Id: I3e1d7e638adbec65ae3dfb7ac2a4b821ad6e76d0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
486e63e5bc7a88455e6fcb83d9cb251df203f727 05-Apr-2013 Alice Yang <alice@google.com> Pull to refresh take 2

Use a horizontal progress bar pinned to the top of conversation list view
to indicate a sync is occuring. Pulling down on the list view when one
is already at the top of the view will trigger a sync.

Bug 8351953

Change-Id: I08db25de800b0fd336e58fe6c8bb614df39c71d1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
97b10963491a88254e84924c208844c4a3fdbec4 02-Apr-2013 Andy Huang <ath@google.com> fix monkey NPE

those darn monkeys

Bug: 8526569
Change-Id: I9aedf45286b5bf47677e12ef3ef90d4006590682
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
0d74a662f6e96b5a21e37978eb6e3b46545e3cbf 25-Mar-2013 Alice Yang <alice@google.com> Add sync status bar

User triggered manual refresh will trigger this new sync status bar
to appear on the top of the conversation list. It will show a progress
spinner indicating a sync is in progress until sync is finished.
If sync was successful but no messages were found, we also report that
in the status bar.

Bug 8351953

Change-Id: I71d77ee3f2f4606082792f68bf5993281a60fcef
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
447d003f3ff86886fefe78a0d720336ff4ee018c 21-Mar-2013 Scott Kennedy <skennedy@google.com> Merge "Don't mark anything as seen if our cursor is empty" into jb-ub-mail-ur9
4b9b395f4b50698d52d44e4650536597ab6240f3 21-Mar-2013 Scott Kennedy <skennedy@google.com> Don't mark anything as seen if our cursor is empty

Bug: 8437228
Change-Id: I41cbe6cfb62878d2d5700fdb693e18a6613b91fa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
b1e21487e18503cc110e1cf8726b835e048ab1c1 15-Mar-2013 Scott Kennedy <skennedy@google.com> Mark messages seen when we view a conversation list

Mark the contents of a ConversationCursor seen, when we view that
conversation list. This may not be supported by the provider.

Change-Id: I38f0027dd22a372f05f93a11b40a9e2cf96d4455
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
4c98320961677f547ab331a61fa34773f432e593 15-Mar-2013 Vikram Aggarwal <viki@google.com> Merge "Create FolderObserver similar to AccountObserver" into jb-ub-mail-ur9
7c8325de829ca029ce4547e4f0fa266124301367 28-Feb-2013 Scott Kennedy <skennedy@google.com> Teaser view for sectioned inbox

Still some changes required as the spec is updated, but it works.

Change-Id: I068488d057e42bc62af36e532d55ce17f695f49d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
50ff0e50f1a27144e55e4184f48e433439727e7b 14-Mar-2013 Vikram Aggarwal <viki@google.com> Create FolderObserver similar to AccountObserver

Reduce code duplication. The FolderObserver calls the onChanged with
the new folder, removing the need for every observer to call
controller methods to get the current folder.

Change-Id: Ia36b4f59676d9b30d39cf2c0cabd2ab1d260f450
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
720a2c494c066b4657ab852384fd66fbd11cd430 13-Mar-2013 Alice Yang <alice@google.com> Revert "Change "hide checkboxes" to "show checkboxes""

This reverts commit e7b31afacb4779e0af5a23413b96453979a852a4.

Bug 8370186

Change-Id: I52d0d0ee18e2e7bb4a845e86d0b5e3ba055c50ac
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
817d6658562f7a2bbbc8255b2e10ea3ff1864e20 01-Mar-2013 Andy Huang <ath@google.com> resolved conflicts for merge of 9e4ca799 to jb-ub-mail-ur9

Change-Id: Ia0d3b2234cefe100ada97efa9b918301cebd323e
9e4ca7993213d296043d20fe9cf4e166b5d595e8 28-Feb-2013 Andy Huang <ath@google.com> better logging of conversations, folders, fragments

More info will be logged at DEBUG level.
Also fix crash when DEBUG logging enabled.

Change-Id: I15fbb944128d5fed18086a2eae33f080bff9117e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
fa35361c753dd6707268a5eb02ab1a3b44db78ce 23-Feb-2013 Scott Kennedy <skennedy@google.com> resolved conflicts for merge of 1ecdd95f to jb-ub-mail-ur9

Change-Id: If3d898d8f78e8dcfeadfed07edf544b1a75cb2d1
08a079c3d2857e365736432b2691187767eb116f 22-Feb-2013 Scott Kennedy <skennedy@google.com> Hide conversations from list after removal via notif action

If a conversation is archived, deleted, or has a label removed via a
notification action, we should hide it from the conversation list
until either the undo notification is activated, or it times out.

Bug: 8248145
Change-Id: Ib88a14142238b5553f80d59e67be5f64ab2a28fb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
08666ca5064be455b9585e8626869cfd7bbb4aa9 15-Feb-2013 Scott Kennedy <skennedy@google.com> am 4cef2505: Merge "Enabled swipe to archive/delete to change immediately" into jb-ub-mail-ur8

* commit '4cef25051d28853e1c781775d9ebb7acb2302848':
Enabled swipe to archive/delete to change immediately
7f98d0da720da81d497046c038ffeca6d56f2a08 15-Feb-2013 Rohan Shah <shahrk@google.com> Enabled swipe to archive/delete to change immediately

There was an issue with swipe to archive/delete. The
steps are recorded with the bug. Essentially, the
original behavior is swipe to archive. Once the user
sets that to "no effect" through settings, he/she
can no longer swipe. However, once the user turned it
back on, swipe to archive still did not work.

Ths change adds "enableSwipe" to the "setSwipeAction"
method as, previously, only the action was changed,
but the actual swipe action was not being re-enabled
immediately.

Bug: 8203494

Change-Id: I3c64034b796b21cb1baa53440d26d59e6cde079a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f6d61c0f9104bf3f0172f989c5bc32991eea725f 05-Feb-2013 Paul Westbrook <pwestbro@google.com> am cec3e0b9: Speculative fix for dropped archives

# Via Paul Westbrook
* commit 'cec3e0b9c90173e0bdb2d072046b38714fc9186e':
Speculative fix for dropped archives
cec3e0b9c90173e0bdb2d072046b38714fc9186e 05-Feb-2013 Paul Westbrook <pwestbro@google.com> Speculative fix for dropped archives

If the list view isn't able to destry the item, perform the action
manually

Change-Id: I07ae2cd28cdc38033b3e6d6697746a0f3b9c13f9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
337d2c1a79dee478afe7c204ef6c71bda534313f 30-Jan-2013 Vikram Aggarwal <viki@google.com> am b9d1d7c8: Merge "Improve choice mode in Conversation List" into jb-ub-mail-ur8

# Via Android (Google) Code Review (1) and Vikram Aggarwal (1)
* commit 'b9d1d7c87431829f152254f577adecb7c10fc73a':
Improve choice mode in Conversation List
0509bba9a80de474a24368e1f3baebd3cd32cd5e 30-Jan-2013 Vikram Aggarwal <viki@google.com> Improve choice mode in Conversation List

1. Set CHOICE_MODE_NONE by default on phone. We never show activated
state on phone, so this avoids a lot of existing list view choice mode
changes.

2. Set CHOICE_MODE_SINGLE only on tablet, and set it to NONE when in
list view.

3. In SEARCH_CONVERSATION viewmode, set the background drawable, just
like in CONVERSATION mode. This is the reason why the selection
sometimes continues in the search results mode, because it is not
redrawn. Changing the drawable on view mode changes forces a
refresh, which removes the selection highlights.

Bug: 8029180 Selection highlight often remains after viewing a
conversation from search results

Change-Id: I545fe1d4e330d0b3e102ff4f898a169b13733299
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e7a4b6898f085782cf4c5f5c8c4091a245465f0d 29-Jan-2013 Vikram Aggarwal <viki@google.com> am a91d00b4: Many fixes to detached mode

# Via Vikram Aggarwal
* commit 'a91d00b4de3092b41af5f36436d3b49fe4586f64':
Many fixes to detached mode
a91d00b4de3092b41af5f36436d3b49fe4586f64 18-Jan-2013 Vikram Aggarwal <viki@google.com> Many fixes to detached mode

1. Unselect the top conversation in list (by un-setting activated
state), before entering detached mode.
2. Set choice mode to NONE to avoid changes to the selected state in
detached mode.
3. Allow for recovering from detached mode by tapping on a valid
conversation in the list.
4. Bypass most of the action in CPA.notifyDataSetChanged() in detached
mode.
5. Pop out of conversation view if there are no messages (when
detached and the detached conversation is expunged).

Bug: 8026749 Detached mode triggered even when not detached

Bug: 8025487 In detached mode, CPA.notifyDataSetChanged() shouldn't do
much

Bug: 7337160 Subject and message body mismatch

Change-Id: I7b578ab929ee6a7d18002567b1cf4aaac54b0480
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
67a8b48c3aaad10c2dc6556964c55cddf7012508 29-Jan-2013 Vikram Aggarwal <viki@google.com> am bcb16b98: Check tablet mode through resources

# Via Vikram Aggarwal
* commit 'bcb16b98140a83a4db3c51568d21c839595f73df':
Check tablet mode through resources
bcb16b98140a83a4db3c51568d21c839595f73df 29-Jan-2013 Vikram Aggarwal <viki@google.com> Check tablet mode through resources

Change-Id: I790fef6ef7ce3ca97ebba1fa220f44123c2d2e9d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
7ed53776a053782ca37303075c144926647ac557 23-Jan-2013 Paul Westbrook <pwestbro@google.com> DO NOT MERGE Revert "Change "hide checkboxes" to "show checkboxes""

This reverts commit e7b31afacb4779e0af5a23413b96453979a852a4.
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
e7b31afacb4779e0af5a23413b96453979a852a4 21-Dec-2012 Scott Kennedy <skennedy@google.com> Change "hide checkboxes" to "show checkboxes"

Change-Id: I709484f7ea3c563942880a0af9cd0d08daf2496a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
4e77a7d8f44066d0e8fda00d0398037ebf2cfbe9 27-Nov-2012 mindyp <mindyp@google.com> Use the conversation objects we already have instead of the views

Otherwise,when a view is recycled, it will point to a different conversation
and we will have issues

Fixes b/7605640 In Gmail app, taking bulk actions shows the wrong thing

Change-Id: I52e7d59e2f123b90f932b139bf2e475c260d4e0b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
520172e02adc400132591b9f3f5f48c8de445e0e 13-Nov-2012 Vikram Aggarwal <viki@google.com> Remove unused imports

Change-Id: I9385382f4e425992e2a09d12b4c414e32d959d4f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
baf93640bfdb8f3a85ad36f90123dcb57dc5c6e9 10-Nov-2012 Paul Westbrook <pwestbro@google.com> Remove static cache of Folders

The cache would need to be cleared when a new activity instance is created.
Also, this cache was causing problems for uses of Folder objects outside of
the activity, such as the widget.

A folder cache should probably be owned by the activity controller

Bug: 7511055
Change-Id: I83a81092c8ae0abd5bf403810472cd651bb2a637
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
2615aea2ce57f5fa3a9cd2e672282818aee6ce94 07-Nov-2012 mindyp <mindyp@google.com> Cleanup in conversation item view

1) use a single span here to avoid creating extra spans when we don't need them
removes the need for a few variables and is generally cleaner
2) use the same caching logic for folders as we do on the gmail side for labels:
once we have the id, we can easily lookup the folder and don't have to parse the rest
of the string/ create a new folder object

Change-Id: I3cc650583ed851d2c37521ddf21f3c5af7d69bf6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
27c387a30cdaf240a587fce7fa9822b978b60a29 29-Oct-2012 Vikram Aggarwal <viki@google.com> Remove potential bug

This was copied over from Gmail1, but we don't create a loader with
the hashcode of the list context anymore. This can potentially kill
an existing loader, which is bad.

Change-Id: I939ca4ffae79293fd27d91f7a9e8c673866fa4fa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9be59911221b236b10c7575e407ac587c9231bc7 19-Oct-2012 Andy Huang <ath@google.com> clean up debugging code from b/6946182

Change-Id: Ic6605e5e0fc7ba555801c7c11f5cdd2141047541
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
171f5db14065b2cba8eb4d0a7e4edcff03e284f9 08-Oct-2012 mindyp <mindyp@google.com> Why are we still doing all this view tracing?

Even though we aren't printing anything out, we aren't checking for
debug status, which means we are walking the view tree
TOTALLY FOR NO REASON
this already makes things feel snappier

Fixes part of b/7301434 (*) gmail extremely janky on manta

Change-Id: Ic5dab09793a2499e1d2af5f58ca7008b192b9274
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
e21f88695fca2fde6d3636ab505ca28f74c8eb42 01-Oct-2012 mindyp <mindyp@google.com> Only smooth scroll to the selected item if it is not the same as the old one.

We will always scroll to the selected item in 1 pane
If the user scrolls the selected item offscreen in 2 pane, we don't
want to scroll to it
Do this by checking the id of the selected item against the new item
before scrolling in 2 pane

Fixes b/7256978 Conversation list scrolls to selected item

Change-Id: Ia13369d864d31bac89e931beeed813b0df6380e1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
e43ebbf3df2b395abb0070fc6df92eb5abd1ff6f 28-Sep-2012 mindyp <mindyp@google.com> It may be the parent or the child that is selected.

Fixes b/7254474 gmail crash

Change-Id: I131f9ddf74fc4e3229908a5f48fb4e1bd4a4c59c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
81a4f08b1657bb297cd977e3df92660fab05a1ab 28-Sep-2012 Vikram Aggarwal <viki@google.com> Update the conversation cursor state in CLF

1. Fix lack of adapter update in CLF.onCursorUpdated().
2. Call ConversationCursor.sync() in onActivityCreated() rather than
onCreateView().
3. Pre-emptive NPE fix in FolderObserver.onChanged().

Bug: 7243503 Selecting notification attempted to load wrong
conversation

Change-Id: If097e3fcf07c68609c8f620160ef598897ab41af
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
41b9e8f7bea47bbcae71b9ae81c3608a00a90e70 25-Sep-2012 Vikram Aggarwal <viki@google.com> Fewer toasts when there are connection issues.

1. We don't show the toast on synced labels.
2. We don't show a toast when background syncs fail.

Still TODO:
1. Showing a toast when the user hits the refresh icon
2. Showing a toast when we enter the app for the first time & no connection exists.

Bug: 7202801 "No connection." error

Change-Id: I312a5670aeedfc2f8e3dda11e662f2905027993f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c01f5d9455f3482b2d72a179733d5854c8acccd0 26-Sep-2012 Paul Westbrook <pwestbro@google.com> Update the search count

If the folder change happened after the conversation list cursor change
the updated result count was not being shown.

Now, when the folder is updated, we will update the search header

Bug: 7227342
Change-Id: Ic39a95f313092add9d2c9375d114485357fb8b4d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
8694fe9a90b0f8d6f6dc9b8d3a33c49366454f99 25-Sep-2012 mindyp <mindyp@google.com> When using keyboard navigation, the parent of the conversationitemview is what has focus.

Fixes b/7148670 [Manta] Not able to open email with usb otg host and BT keboard

Change-Id: Ia98ec5be4d1bac0f368a54837ac8a109d2f4bc9f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
49e0e991fe8880852b936a0f8d7d57c5b36f2154 21-Sep-2012 Vikram Aggarwal <viki@google.com> Not in conversation view -> unset current conversation

When the current conversation goes out of visibility, we should unset
the mCurrentConversation because many objects get the conversation
from AAC.getCurrentConversation().

I tested this with both one pane and two pane, with search and
otherwise. But I wouldn't be surprised if this breaks something. If it
does, revert!

Fixes Bug: 7205219 Message list is scrolled down by itself until it
reaches last read message

Change-Id: I263c07e8063e7094a1defca76dde788b52df71ff
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
17f373ecf6961112f77a7516ab1bbcb4fcdf2884 18-Sep-2012 Vikram Aggarwal <viki@google.com> Conv. list CHOICE_SINGLE, highlights conversations from widget launch

The problem lay in the complex timing dependency between obtaining a
ConversationListFragment (not available immediately after a Fragment
Transaction), setting conversation.position (the tracker was only
calculating the position on requests to next/previous) and updating
the CLF on cursor change (the call to AAC.getCLF failed on the first
conversation cursor load).

The solution is for the CLF to rely on mConversationListObservable to
obtain cursor changes, for the position tracker to calculate the
position when initialized with a conversation, and for the CLF to set
the list's selected position when the cursor is updated (if it hasn't
been set already).

Also, the CLF uses selection to highlight, and CHOICE_MODE_MULTIPLE is
the incorrect option. Using CHOICE_MODE_SINGLE allows us to avoid
calling clearChoices() in CLF.setSelected(int position).

Partial fix for:
b/7145111 item not highlighted in inbox list when open message from notification

Change-Id: I955d83b44b471ca9d4424e779f854bb664036833
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
490d032fa9a2c06b60ff30f8526223ead538ec23 12-Sep-2012 mindyp <mindyp@google.com> Don't commit leave behind on orientation changes.

More "directed" approach
Fixes b/7150259 Undo leave behind should remain on orientation change

Change-Id: I3fa59948960db6e4337eb310c58702658c4f8406
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
a59283a9856b9356b058575e89dfe3f17fffa529 12-Sep-2012 mindyp <mindyp@google.com> Add a flag to determine if undo is for a batch operation or not

was using count > 1 which is wrong since the user could have checked
a single conversation

The interface SwipeCompleteListner is unused

Fixes b/7149017 Tablet landscape Undo bar not always shown in correct place in cab mode

Change-Id: I213d71d9c4db44723693f76dc7e2a012eba8edc0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
ca8ca2def56c0af5aa8237d19815d591ffc020e5 12-Sep-2012 mindyp <mindyp@google.com> Make sure we check conversation cursor status as soon as we get it.

We already do this for the folder

Fixes b/7100049 "Load more" footer not visible on first entry

Change-Id: I854e64711ee44be6a68038415baab69d8a6a0f5b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
77c3e1bfdc9d14d68440c78386b700cedd0ce65a 11-Sep-2012 mindyp <mindyp@google.com> Swipe should delete in spam

Fixes b/7147157 Swiping on Spam should delete not remove from label

Change-Id: I198a76d9ef516f12ccb5509e4fbb4f22e672320e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9a49c9bc441e6ac009cad72cbca523ce84751f65 31-Aug-2012 Vikram Aggarwal <viki@google.com> Save/Restore ConversationListFragment state

Fixes b/6882074 Fragment state is not saved/restored

Fixes b/7088107 Changing orientation from potrait to landscape does
automatic scrolling until it reaches the current message

Change-Id: I086f35ae0464049cd4267710385069032479e8f4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
649b9ea3653da73fac0c33c8fb0af18baad12ac3 27-Aug-2012 Vikram Aggarwal <viki@google.com> Fragment save/restore machinery

1. Avoids creating ConversationListFragment and FolderListFragment
objects when restoring state.
2. Stores and restores the view mode correctly.
3. Moves core logic to the AbstractController where possible.
4. FolderListFragment scroll position and selected state is verified
working in One-Pane and Two-Pane.
5. Fewer mode changes, less creation and destruction of fragments.

Coming soon:
1. Restore scroll position in ConversationListFragment.
2. Fix some inconsitencies discovered and marked with TODO(viki).

Change-Id: I4d11a576587b8e85300202650381b6e4df3ce61e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
1ee96b2b100546b5b69ad42c5bc3755a4293d1a3 25-Aug-2012 Andy Huang <ath@google.com> handle missing messages every which way

Entire conversations can disappear upon sync (should pop back)
Or just single messages can disappear (should keep conv in view)

Handle these specially in conversation view. Stay on the current
conversation when possible, except if no messages remain, we
should pop back to list view.

When single messages disappear, make sure we don't treat all
the rest as super-collapsed, or else the conv will render empty.

When popping back to list view, we can't call popBackStack()
from onLoadFinished(). Since we only need to do this in 1-pane,
add logic to 1-pane's showConversation() to handle cases where
the caller is in onLoadFinished. In that case, we need to defer
the work slightly, but still be aware of other FragmentManager
constraints when later handling the deferred job.

Bug: 6889742
Bug: 7005366
Change-Id: Id37f878e82523837b7f105d49fb736f774bad224
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e6679b33ebc081214436ab97128073e3eb696c38 24-Aug-2012 Paul Westbrook <pwestbro@google.com> Don't save state of disabled Cursor

Check to make sure that the ConversationCursor is not closed
before attempting to cache the instance state from the conversation
list

Bug: 7051004
Change-Id: I9fa04e82ef20ceb23366a6eccc06d4d8ef5d1eaf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
aa55bc9cb210a46a950874f368baa07f041a4302 24-Aug-2012 mindyp <mindyp@google.com> Make sure we commit without animating when show a new conversation.

Fixes part of b/7045548 swipe bug
Otherwise, the animation doesn't run and we lose this
Part 2 is going to be to add an ondestroy to the converationlist fragment
to make sure that we always commit if the fragment gets destroyed!

Change-Id: I6bb8f04df75eb38dfe38ee4c9e0930d51035ada6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
7517e3b61b898a57f19be0671f70d58a82224643 20-Aug-2012 Andy Huang <ath@google.com> Turn on Andy's most excellent copious logging of layouts

When the 'MailBlankFragment' logging is enabled, this will disable all
hacky workarounds and log view state. When a blank view happens, look
for logging with this tag to see where the view state might have
messed up.

With the 'MailBlankFragment' tag disabled, this removes all logging
and enables the hacky workaround to patch-up view layout requested
state.

Bug: 6946182
Change-Id: Ia4c2515f969be29678dc0a9bd1c11d487e3d1520
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
bad1a93d431bc599ed73fa4f42eeef313cd31626 23-Aug-2012 mindyp <mindyp@google.com> When tapping checkbox explicitly, go straight to toggling the checkbox.

Begin drag is only used if the user has performed a long press
Fixes b/7046061 Tap/Select the check box of any message in GmailEmail Inbox does not show the selection for ~ 20-30 secs

Change-Id: Ib8a2d04ff162fe509e8f38d6f61960a8d828efbe
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
a6e965ef4a7ac2266f0a5509be25ac1e8d272595 21-Aug-2012 Andy Huang <ath@google.com> refine workaround for b/6946182

and expand it to apply to ConversationViewFragment.

Bug: 6946182
Bug: 7024591
Change-Id: I39c443692ad9294ca431c846fcabe86718800a72
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
4969e0c5f8ab837e1b0d29ea56d220e6404e9250 20-Aug-2012 Paul Westbrook <pwestbro@google.com> Move ConversationListFooterView click handling

Since the click handling for the ConversationListFooterView is
essentially the same as that of the ToastBar, move click handling
into the Activity Controller

Change-Id: I14b8ef6788b929e82d61b8393195b703c210021d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
09e783ce7747a40cabe4fbad708c1cf98db61c8d 20-Aug-2012 mindyp <mindyp@google.com> We dont want multi modal, we want multi, and then we want to be able to have 1 checked item.

We use "checked" differently then everyone else, since we have our own
checkboxes / start/ end our own checked states.

Fixes b/7012634 JOO47C: No highlight to indicate currently selected conversation in 2-pane landscape mode

Change-Id: Id05a2bbe108a07c7d55f9818e15df026c263d3db
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
1bc9a559c8e02c45cb57f2dd8ac3cc871bd2961f 19-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix restoring scroll position

Bug: 7013607
Change-Id: If3bcd34b02d6d1a7303ae03678b81f9325fd89ba
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
443275a9e4f9f66d982cbcadca215be239663a7a 18-Aug-2012 Vikram Aggarwal <viki@google.com> Hacky workaround for blank views

Change-Id: I0bd30cfca4403ccbb999e942f31c64954c042b4b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9a70e919125d63971604e6dd3de8bc998e9c86da 18-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix resetting ConversationCursor

We need to reset the state of the Activity controller when the
ConversationCursor is reset.

It isn't necessary for ConversationCursorLoader to call the
callback's onReset, as this will happen from the loader manager
Also, the loader manager only calls onLoaderReset() if the caller has
valid data from a new instance of the loader, but onReset of the loader
is still called. We don't want to call onLoaderReset() for every call
to onReset()

Bug: 7009556
Change-Id: If943409028aa8f5e465a5dba4bac1307a4d4e0fe
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
80ecd892733980aad7efb56e6266356a9da13fa8 16-Aug-2012 Paul Westbrook <pwestbro@google.com> Ensure we restore the list state

Bug: 6937511
Change-Id: I34fa4f34be5a600e3c189a5e5877efa2cbbc850c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
995adf0d793eeaad5900f7b989a6e87433017788 16-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix use of disabled cursor

When the activity is in the process of shutting down, the loaders
may have been reset. Getting the list view in onDestroyView may cause
a disabled cursor to be accessed

We should just rely on the saving that happens in onSaveInstanceState

Bug: 6937511
Change-Id: I6e19a01f0f04d4f4b9efdfeedc6872f72c6f1ec9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6cc9553ee0813f2335c9060b93455dd0d76d4bad 16-Aug-2012 Mindy Pereira <mindyp@google.com> Fixup bugs with empty view.

Now that we get the updates we expect for folder/ conv cursor,
discovered the empty view had been removed and the search header never
got a corrected count.

Fixes both those issues.

Change-Id: I6e9d3ee969f8aa6816c29711949d6e3785434cf4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b073f16896c34abc1eefbc97080942c22c1a8f6f 16-Aug-2012 Paul Westbrook <pwestbro@google.com> Reduce calls to ConversationListFragment#onFolderUpdated

Bug: 6840593
Change-Id: Ie5fed51e2a4800441c9e8549e23a9403ab2b84e8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
12fe37aa24c313fd8192dede0770dadf0ec23359 15-Aug-2012 Mindy Pereira <mindyp@google.com> When we update the folder the user is viewing, clear the items cache.

When we swap folders, a lot of information about an item is going to
change AND we wont be seeing a lot of the same items.
It makes sense to just blow away the cache and redo.
fixes b/6987220 User defined label added to a message is missing in Gmail Inbox after reading the message
Change-Id: I1167af604bab4045946c89bcacf3f87bd2077919
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
b81ddfd11f42d72fe36e850987b5ad6a0be071e2 11-Aug-2012 Mindy Pereira <mindyp@google.com> Update swipe action when settings change.

Fixes b/6969671 Swiping conversation list settings are not reflected to current label in use

Change-Id: Ie669c295f584e8fdefee8867205e118bbd16addd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
de1c85910d03b798b3f757d8fb58ebdda9025132 10-Aug-2012 Mindy Pereira <mindyp@google.com> Clear selected conversation item when going back to search results list.

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

Change-Id: I9fe82617930f6f805d0393d77c9e86eb18239d8d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b5901be36e247573e8162714e8e006c4dbc35d4a 10-Aug-2012 Mindy Pereira <mindyp@google.com> Make sure view mode changes actually get to the conversation list fragment.

Set the background of the loading item properly depending in mode.

Fixes b/6409001 Shadow on left side of emails is not consistent. You see it only on email items but not on the "loading" message or empty section,

Change-Id: Ie0b15e6853665e4e5ece16a836f9a0fc1e114555
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
00179f19e413461498599ab7e6eb6914cc5c3671 10-Aug-2012 Andrew Sapperstein <asapperstein@google.com> Added the visuals for the new error styles.

The visuals are done (minus some string changes).
However, two of the buttons need to be implemented
(the sign in button and the report feedback button).

All of this work occurs in both the ActionableToastBar
and the ConversationListFooterView.

Change-Id: Ifa67a0f72d100191c2cdb47f601e6ff04a765e02
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
ae4ea997d3d3f3c8c11fc5a3e7f9d49f82b4e2e7 07-Aug-2012 Vikram Aggarwal <viki@google.com> Remove NPE when listContext is null

Change-Id: Ife330f28c3d34b8e0d028d30c92e857dec86d81f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
4f1cc0ba5e7bb4083ca9542d6fcb58aae9ba7611 03-Aug-2012 Vikram Aggarwal <viki@google.com> Short/long tap in conversation list

Fix b/6392199

Change-Id: I11368c5ca7b75026614d5bbda276d63187bba241
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
573b9e698852c6cf2cbf0f93bc01b7abb8b64ce1 02-Aug-2012 Paul Westbrook <pwestbro@google.com> Fixes for live conversation cursors

Use correct status values
Also, make sure to hide the footer if it isn't needed anymore
Change-Id: I2be736c7f9d18a5fc68da21851218a4a3b02226d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9730ea0550dacabcd38f0997c02d668058520042 02-Aug-2012 Vikram Aggarwal <viki@google.com> Perform a longClick from within ConversationItemView.

This will set the stage to fix the short-click and long-click behavior
required for b/6392199

Change-Id: I425e12ea205bbc95baf387330cf83d359e6c7be7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
70a70c92bca006af84177d025c32deee3aa6da3f 02-Aug-2012 Mindy Pereira <mindyp@google.com> use conv cursor extras instead of folder status.:

fixes b/6917492 Use ConversationCursor for conversationlist status
Change-Id: I256e52459e80290e3d6ec6d3f8adf4de8a9a0c3d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
8cf004330b069a21b54695617046f70f82130162 01-Aug-2012 Vikram Aggarwal <viki@google.com> Remove duplicate constructor

Change-Id: I3b72c8d51cb60f2767bf24aefd25e031f92c7024
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
4e812f49c5bbba50a60d062d624403952f8d5487 31-Jul-2012 Mindy Pereira <mindyp@google.com> Update logic for which swipe action to use.

If the folder is not user settable, then don't show "change_folders"
instead of archive
If its search, always show delete
If the account doesn't support archive, use delete

Also, fix crash caused by making an arraylist of zero folders.
that would occur when the user removed a label and added no labels.
Change-Id: I251271f0e2bc621e98f47b665be5a7c4fcaaeeab
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6ff331c0543dccad411cd18d8aa99ccadbca59f3 31-Jul-2012 Mindy Pereira <mindyp@google.com> The swipe action for search is always delete.

Change-Id: I8ffa2bf504a4aff86f73d2c58a391088f4eabf8b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
7591d2fc98c4308567a1d8822b41b48133227b25 27-Jul-2012 Andy Huang <ath@google.com> observer access shuffle

Change-Id: I0f8c41eedab1c570b337bcc93e3c0599507ece7e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
71a8f297b1d43b9dd0c3b39af820e8a84ab4185f 27-Jul-2012 Mindy Pereira <mindyp@google.com> Only remove observers when the fragment gets destroyed.

Re-added when the activity attaches.
If activity is null, don't bother trying to get resources.
Change-Id: I47a49b1200d811bac35e485f8923ef32bc2290fe
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e3c7b0becc5d548db91b282f273a973ea2bd25b9 27-Jul-2012 Mindy Pereira <mindyp@google.com> Unregister only if registered.

Change-Id: Ic34be6a6864ab7314d728bfdd429ff82bd1b7071
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6d8e7fe77c3a3ecfac7bb3bdf0f87f7f89f66b77 27-Jul-2012 Mindy Pereira <mindyp@google.com> Fixup Folder model; make ConversationListFragment observer on folder changes

That way, we properly show the "loading" bar

Change-Id: I780fb1cc9cc78d8c3d05d5b3ab7fa8a83b5090e2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
278fd226160fa486db17cc7e55deebe5d7a2ae0f 27-Jul-2012 Mindy Pereira <mindyp@google.com> Make sure syncwindow gets syncwindow, status gets status, convlistfragment gets status.

It looks like someone is already intentionally passing the
conversation list cursor.
Which is good, since it loads (sometimes) before the convlistfragment
exists, so it will never see the initial call to onCursorUpdated
We need to do the same thing for folder, since the convlistfragment
may not exist when the folder update first comes in
This allows us to properly show the loading row

Change-Id: Ic9a4498e03e6f0551e527e19fd9fc95e8d5af03e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
e58222b9421756e11eb24799c1785a090d0793ad 25-Jul-2012 Mindy Pereira <mindyp@google.com> Use the swipe settings.

Change-Id: I597b75b55a29046c783e972f4ddf30a3c275b38f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
4765c5c90802d0abcf2b05c4967e7dd7d2284f9a 19-Jul-2012 Mindy Pereira <mindyp@google.com> Make sure we hold on to pending undo ops.

its possible the converesation list fragment isn't visible yet, since
onepanecontroller doens't always have it around.

In this case, store the pending action in the activity and show it
once the fragments attaches.

Fixes b/6779210 Deleting a Conversation in a Label in Conversation View Does Not Show Undo

Change-Id: Ib8c41dceef67dcdac1c331ed777daf6dfb0b6702
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9d7519d18e8ddbcdd59b37eec7c85210fca0e8c2 16-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Error notifications show after orientation change.

Change-Id: Id038a4ee7a7f28fe7119d71e070464d9663f8516
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
d3367499e56116854ed637b1036fd71057ac0f49 26-Jun-2012 Mindy Pereira <mindyp@google.com> Make it possible to restore undo operations.

Conflicts:

src/com/android/mail/ui/AbstractActivityController.java
src/com/android/mail/ui/SwipeableListView.java
src/com/android/mail/ui/UndoBarView.java

Change-Id: I42441c60e9ab7aff8f4c07dd21d03d2e419b2d0b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
ebdfd98264104cb5a6888acd663970b7c0b31382 13-Jul-2012 Mindy Pereira <mindyp@google.com> Add ability to change multiple values at once for a conversation.

Change-Id: I597bd33c5f647170f8cc06aba79091ac2090f696
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
06642fab1bf4ab95b5dd97a65b262845cf60c865 13-Jul-2012 Mindy Pereira <mindyp@google.com> Make swipe remove label when not in inbox.

Change-Id: I80b22ccd04d3c1b27ebd8af7b84dadea127ed4c4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c2c9dc14aa184db1f05b8c060b27d97dda5a3ca4 03-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Refactored UndoBarView into ActionableToastBar.

This step was mostly renaming. Deleted some unused
stuff. Made the show() method far more
general. Now showing sync errors as a toast.

Still requires some tweaking for the different error
types.

Change-Id: I476e107ed89ed492b44b081d32e4216504626c13
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
864e758a75b0d4945974ea516a23c63e4785973f 30-Jun-2012 Andy Huang <ath@google.com> advance selected list item upon conversation swipe

Bug: 6763207
Change-Id: Iffc86b92b9a3ecc698fc865b6b40f0eddd8208ec
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6ea52783c6f0acbc844e633402206399866ae141 26-Jun-2012 Mindy Pereira <mindyp@google.com> We weren't showing the error state footer.

Change-Id: Ia43726b728b4409932dd2edfeae377ed83bec527
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ConversationListFragment.java
48b2a6c5fe209f0603fdf85d35cf399f7f7d462e 29-May-2012 Vikram Aggarwal <viki@google.com> Minor cleanup

1. Remove uncalled empty methods.
2. Remove methods from interface if nobody else is calling them.
3. Remove unused DragListener interface and all references.

Change-Id: Iac498336209b8e73f9a0e13dd8954652e83fd1fc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
3d7ca9d2aefd20dc115f20532c1e19fdb60f7d68 11-May-2012 Vikram Aggarwal <viki@google.com> Consolidate OnePane, TwoPane, and Conversation Destructive actions.

Change-Id: Ieccc3fc1962572fec78dfb1ea91557e56f931a48
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
75daee52f08c9bf66652b9bddf42cfbd1ca71987 30-Apr-2012 Vikram Aggarwal <viki@google.com> Consolidate list refresh and deletion

Change-Id: I024dbc3f9d18ae0c762c5fd1c54855afe6d54050
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
c7694221dfa5cec3f4ae290f2266b081b2639d80 23-Apr-2012 Vikram Aggarwal <viki@google.com> Destructive Actions. Part 2: More logic consolidated.

Get next and previous conversations through mTracker in preparation
for relying entirely on the AbstractActivityController's logic.

Change-Id: I0d477547356561316c1717d5ddbf4f467b7f3b3b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
0e3fd9d61bc18ad9f828bb3c4dd24fc851f11df5 20-Apr-2012 Paul Westbrook <pwestbro@google.com> Restore the conversation list position

Bug: 6268694
Change-Id: I430e688b07eed6e4c4087dca5de7ae238e1bbcb8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
632721e6b3a9ba8c476456f2e0fb1b564561e0b5 12-Apr-2012 Andy Huang <ath@google.com> conversation paging

This CL takes the approach of using a permanent ViewPager that
pages through conversation fragments. Its adapter is only
set and populated when the conversation view is shown. In all
other cases, it is an inert empty layer.

One risk with this approach is that it breaks with the typical
fragment transitions that all other content panes use.

On the other hand: conversation fragments are full-on fragments
and benefit from loader separation, and the FragmentManager
takes care of save/restore of state.

Change-Id: Ic17d1ae3f35a0cb1119967f2d34433ad27fa307c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
8520fa3ff87e28a7c24c5b09c462aa444e8956af 19-Apr-2012 Marc Blank <mblank@google.com> Swap in a null cursor before clearing the ConversationList adapter

Change-Id: I41cbf2bcefe9ba2021f7eb00c43700ea1e48f564
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
1e2573bbba613fb700e8fa01c58c9382c0027b5e 17-Apr-2012 Mindy Pereira <mindyp@google.com> Commit leave behind properly on pause.

Change-Id: Ia12e60c2d7f5cc6587373f25b80ac2342533b0e4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
85bd9e469e97239d420a13e2ee9b63a6e2189993 17-Apr-2012 Vikram Aggarwal <viki@google.com> Fix the build

Change-Id: I742c464c15ebdc9eb12ec0b130ef4bbaf6f4f702
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6902dcf8688d7d0691639f49365a78a3a78fe9e3 11-Apr-2012 Vikram Aggarwal <viki@google.com> Controller gets fragments from FragmentManager

Change-Id: I1d9906ba5d70ed5580e35a53b34797cd5f1e0ad7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6c72a787b58a0bc3afcb71093eddf8c29d1cf5ed 07-Apr-2012 Mindy Pereira <mindyp@google.com> Show leavebehind after swiping away an item.

Change-Id: I3bae79ed5bb8919985dbfa6e81416da980281cff
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
acf6039a23382f18c35f6b487d90d53cb67b5858 06-Apr-2012 Mindy Pereira <mindyp@google.com> Drag and drop into folders.

Change-Id: If80c43fb5643d328bf061c2bed87bd9acb6e4661
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b6b174fb3a8f58a2c81e035917ebad8ab45b88ae 04-Apr-2012 Mindy Pereira <mindyp@google.com> Respect hide checkboxes; tap and hold to add to CAB group

Change-Id: Iaddd1dbbfd1a0e3c07ba1ffcd6a4e4368ad0e294
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
ff9aff3c28c4c20c7866ebfaaa642997e324f274 04-Apr-2012 Mindy Pereira <mindyp@google.com> If provider doesn't support archive, turn off swipe.

Change-Id: I9e6b956a967d633cf201be81927ed16918358c11
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
866d319dd23ec8b7b7d5476c65f7f83469d55d2d 26-Mar-2012 Mindy Pereira <mindyp@google.com> Re-enable swipe.

Swipes all checked items at once
Tap highlight
Properly colored background
Doesnt swipe non checked items when there are checked items
Change-Id: Id71e331d35f75ee02813dee8376d764386221868
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
66bee6e884dc7f6c6f880fc0213bbd5e4c23e476 02-Apr-2012 Marc Blank <mblank@google.com> Only animate deletions if at least one item on screen is deleted

* This definitely addresses the first bug here (delay when deleting
multiple items; the bug occurs if all deleted list items are off-
screen)
* This probably addresses the second bug (downsync is delayed); this
would happen if the UI were waiting for deletion animations to
complete

Bug: 6268890
Bug: 6263660
Bug: 6212034
Change-Id: Ia683e35a050da8045401f7410233227afb1948ce
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
d39aebdb6a2d9f480311f9e335f3707268bc52a8 30-Mar-2012 Mindy Pereira <mindyp@google.com> Don't bother trying to animate things at position -1.

We couldn't get the position of this conversation, likely
because it came from a notification or widget or other external intent
Don't animate the item.
Fixes b/6260133 Crash when archiving an email

Change-Id: Ic06f268fcca93d82d3806bf2afec7b6870abd855
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
dc8963bb37926496e14df8e53e3e5a87a777d9b4 29-Mar-2012 Mindy Pereira <mindyp@google.com> Search results header was not showing up.

Make sure we call the commands for showing/ updating
the results header at the correct times.

Change-Id: I1e5ad2cdd47d5c838b99c20371fc2424d09bd503
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
82cea4896518e35bf8509b221bb46ae5ac610699 28-Mar-2012 Mindy Pereira <mindyp@google.com> Don't do anything with a null folder.

Change-Id: I853d117c8e15bd2a08a2561ea22d7f8f5f24cbe7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
12a676a515a17fea42cedfa5ed6885d0b1312643 23-Mar-2012 Mindy Pereira <mindyp@google.com> When the folder changes, immediately restart the conversation list loader.

When the account changes, neither settings or folder are valid,
so null them out and wait for the cursor loaders that are kicked
off to restart!

hmm I WAS doing this...
Change-Id: Ic4832c436675ce7f354da6a16934445e1dba9182
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
1e231a6ecd156a47fcb533ebd40d9dfe122cb32e 23-Mar-2012 Mindy Pereira <mindyp@google.com> Ignore taps on loading footer.

Fixes b/6215955 android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 0

Change-Id: I379f8c40bf740e32f00c3b4f4d07a89c29f7aa67
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
967ede63e059810d9d4d425c50111d606014c893 22-Mar-2012 Mindy Pereira <mindyp@google.com> Move ownership of the conversationlistcursor to the controller.

That way, conversation fragment, conversationlistfragment, and
all the controllers can get to it for positioning, getting next/prev
conversations, etc.

Also removes need to keep conversationlistfragment from being
destroyed/ nulled out.
todo: should the controller own the list adapter as well so
that is can make changes? unclear.
Change-Id: I2388b8403c4253f6075c03f613ca73c2cfa81422
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
a3c4dc2efddf837d79639706bdadae72f773d407 21-Mar-2012 Mindy Pereira <mindyp@google.com> Make sure we set the conversationlistfragment position.

Since we can't guarantee this is the same fragment or that
the position hasn't been reset, set it before deleting.

Change-Id: I2d731fc7ebb50d4c5a5ea92b74a7f1ff6b9cecd1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
755fd6e008340d68d8cd94590d6e8f829730ed62 21-Mar-2012 Mindy Pereira <mindyp@google.com> eon't setup the search results header if there is no activity.

Down the road the conversation listcursor will be owned by the
Controller and we can completely remove the need for the convlistfragment
in OnePaneControllere

Change-Id: I2666dfe3b09019e688ea481984eea873879e7644
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
10e754b8c6749620657c3804992d8efe2abedff5 21-Mar-2012 Paul Westbrook <pwestbro@google.com> Make sure to detach the conversation list from the controller

Change-Id: I3771cac7fe7e9c0fa86afa91e4b0cf6ebf16c68c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
51144944c2088299ebc2584cc09c61c23eb18659 20-Mar-2012 Marc Blank <mblank@google.com> Add "limit" to first load of ConversationCursor

* For my large convo list, time for first query is down to about
300ms from average 9000ms
* TODO: Clean all this up...

Change-Id: Iaa17f5b8b5b773cb4c8133b4f22d7096b3a3aa54
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
fbe4019a262f6b1934a44e598009ae63dc5745ee 20-Mar-2012 Mindy Pereira <mindyp@google.com> ellow onepane and two pane to specify their own behavior for conversation changes.

Add menu handlers for help, settings, feedback to compose.
Set up on compose to exit the activity.
Change-Id: I42d2736e83cb5bedbb3194f0cffcf12aca6ced9a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
21ab490d4919985d611bc36ae2d8aea86a911499 20-Mar-2012 Mindy Pereira <mindyp@google.com> Hookup logic for going to list, newer, older conversations after destructive action.

Change-Id: I86930dda9124a969307f272946826839713110bc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
5ff63747a1b5c6e2197528972cbc3ba808b09d8d 17-Mar-2012 Andy Huang <ath@google.com> show subject and labels in conversation view

Show labels only for accounts that support multi-folder
conversations.
Move some classes into smaller 'browse' package.
Special-case subject/labels overlay for now. Full adapterization
is coming soon when super-collapsed blocks are in.

Change-Id: I458009776eb2e3840dd9e441de9e4ead3cc94d0b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
0fc15747458eafd0e2f7bd3274f19eb40c52308e 19-Mar-2012 Mindy Pereira <mindyp@google.com> If we arent showing the conversation list fragment, dont bother to animate

Just call the action complete listener directly.
For now, just pop the back stack on destructive actions.

Change-Id: If269f4594080f28070f7ca6b580422af73dbad42
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
556484bbd84f9678f92bf17d72c8ba63edc6fcf2 19-Mar-2012 Mindy Pereira <mindyp@google.com> Dont set the convlistfragment to null/

Fixes crashes with doing menu operations in conv view.
Note: the actions don't seem to actually take effect either way...
going to do another CL after this that makes the menu items work.
Change-Id: I5982e5817c47a119d0a7099064c5c4bb097b5780
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
175cd3d2943105f548ff5cf4f61277c1d5ecbb02 16-Mar-2012 Mindy Pereira <mindyp@google.com> Small tweak.

Change-Id: Ic857f5d9cc49f5a61639eab3be061fba68b6451f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f6a6b50c6b45f36b9317e1688f8b87310a67b037 15-Mar-2012 Mindy Pereira <mindyp@google.com> Beginning of swipe to archive.

Create our own swipeable list.

Change-Id: I74d2ad0176dbc7411c1c884c9b8b7c24a770e819
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
397621b93f83f8933f7a29a9b6d7fe2b88ec4008 15-Mar-2012 Andy Huang <ath@google.com> Get 'mark read' from conversation view->list working (barely)

Conversation view updates a bit on its conversation model.
The model goes through the ConversationProvider caching proxy
to do the write.
After caching the write, ConversationProvider optionally
notifies anyone observing on the global ConversationCursor. This
part is weird and should be replaced by the Controller notifying
on its held reference to a ConversationCursor.
The conversation list adapter is registered for data set changes
to its ConversationCursor (thanks to
FLAG_REGISTER_CONTENT_OBSERVER).
The ListView is registered for data set changes to its adapter.
And the list redraws upon 'mark read'!

Change-Id: Ia465b90733f1cd19dc890a82ca4506178d840f04
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
4584a0d83e160444f931cb565185a2eea39b1683 13-Mar-2012 Mindy Pereira <mindyp@google.com> Remove the folder we are in on the ui side.

Conversation needs to show it; conv list doesn't.

Change-Id: I0c26852525ca58bb71fc8a27e90ea4868487a5cd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
a6e7992c38c9ffab7ec586e1ef52031cdbb07769 11-Mar-2012 Marc Blank <mblank@google.com> Fix footer show/hide

Change-Id: Ieb3b16d3149f3420a6554ed0c72d0f0ff8f426f1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
cbda244e88ee353f6171757542c8218a7c5c3d81 11-Mar-2012 Mindy Pereira <mindyp@google.com> Always show the footer at the end of a sync if there is a load more uri.

Logic will determine if its hidden because we are already at the end.

Change-Id: I4f8194a1a838b00fb28103d20b88c6f1dc6bfce2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
11dd5effd79b8078b24bcdb4160e8e12a17317a5 11-Mar-2012 Mindy Pereira <mindyp@google.com> Add load more to the conversation status bar.

If a folder has a load more uri and sync is done, show this bar.
When the user clicks it, query on the loadMore uri.

Change-Id: Ie6dc1671be6f04b9af0b37b65ad7f9941a339ac6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6681f6b78557850d9ec76a7a8f9ac1ec930d2513 09-Mar-2012 Mindy Pereira <mindyp@google.com> Setup the loading footer for search results and other folders.

shows sync status or errors.
This will eventually be where "load more" lives
Currently only shows for search results
Can easily be updated to show for all conv lists.
Change-Id: I87ea19ebca13617f8a0ba7aed4f63f49b2b69c14
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
a3911aafc876fc21cdbc5a997ecea5c1f293df5d 09-Mar-2012 Mindy Pereira <mindyp@google.com> Correctly set search result totals. Change from searching to results when synced.

Change-Id: Id7461f29e79c2add714922f54cfbbf8b0e30cf96
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
30fd47bf1947da5ad813cb957b6cbe569dce563a 09-Mar-2012 Mindy Pereira <mindyp@google.com> Remove all label refrences from unified; change to folder

Remove labels text views from unified mail conversation list items.
Gmail will override with a new xml file that will provide a "folders" area
Change-Id: I443b8d73f253f046dfa8a8a68afa19e89bf7a85a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
3232a96e0ea88741dc39acf17d49e9c22b61c707 09-Mar-2012 Marc Blank <mblank@google.com> Again, get sync() off UI thread

Change-Id: I5c72180bebcab1ca66b44e340e768aec3ae6b03a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
87cc1237efd0384a33046a7c6fa670df018295a1 08-Mar-2012 Mindy Pereira <mindyp@google.com> Revert "Make sure sync() happens in UI thread"

This reverts commit 2cdaa04b0ef7faf02a47ed25215c5b20fa5b219d

Marc, we need to go over this. Lots of things broke once I synced this change down. I could not get the contents of folders, things were resyncing all over the place. Reverting this for now.
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
2cdaa04b0ef7faf02a47ed25215c5b20fa5b219d 08-Mar-2012 Marc Blank <mblank@google.com> Make sure sync() happens in UI thread

Bug: 6134215
Change-Id: Ib4678108eeb3e51b59ddfdc30a2b9bdabb7d1723
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b849dfbda3c917f078a5c09f03906886c27ecbec 08-Mar-2012 Mindy Pereira <mindyp@google.com> Make tablet search work correctly.

Change-Id: Ib19dcc590fd80aa134aa3afab9989eeac2aec224
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
68f2e222b4ffccd9f67f02b3a9cfdb3841a7eb43 07-Mar-2012 Mindy Pereira <mindyp@google.com> Hookup search in the UI.

Remove ActionBarView interface and rename MailActionBar
to actionbarview. We needed this for pre v-14 support, but no longer.
Change-Id: I539b6751313e561311921010b03250df632260bc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
62c5af833b7e3dc8fe6a81bfff7805af1fb5555b 05-Mar-2012 Mindy Pereira <mindyp@google.com> Add selection state for selected folder; clear selection state when entering convlist mode.

Change-Id: I4b695ec5ac27d16ce4d39025e4e939f3a2b82a8a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f96ec32ba61bac2a7635f6ef6e04a78cc63cfff8 02-Mar-2012 Mindy Pereira <mindyp@google.com> Fix spacing, styles for conversation list items on tablet.

Also, make sure we have the correct view mode. It was not
being passed to the adapter, so the conv items never knew
if they were in conv list, conv, etc.
Change-Id: Ib55231e9b04dcd507b134a0947c14352ba71cf51
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
2af0cf3f538d035c80c7eedacf97362d9a943fa1 02-Mar-2012 Marc Blank <mblank@google.com> When creating convo list view, sync ConversationCursor if necessary

* Belt and suspenders, in case we ConversationListFragment during an
animation

Change-Id: I66db4dd99383371cb821592945ac92193f7cf0bf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
415d31b64022be2bb45f6353d8251fd2e2b87d41 02-Mar-2012 Marc Blank <mblank@google.com> Make sure we sync() after finishing server-commanded deletion

* If we don't (as now), updates don't appear in the UI.

Change-Id: Ie8f2fdddd70cb340d603bd4811ac77ec26a2b5b5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
3982e236fb2dd36d460df4dbf24e07e8ba55b3bd 01-Mar-2012 Mindy Pereira <mindyp@google.com> Fix up/ back behavior for one pane.

Change-Id: I08ca5364e508eee6910e06fb1b0594a638a6ea0e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6c51158ad3269f157424e6c7bd488425c98da08f 27-Feb-2012 Vikram Aggarwal <viki@google.com> Make constructor public to handle resume/rotate

Change-Id: I4953ae6ed753792eb8a7aced99474fe09976f140
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
6f4a6af149e1f0ee71db356205b810becbc5de2c 29-Feb-2012 Mindy Pereira <mindyp@google.com> Swap cursor in adapter, don't remake adapter.

Change-Id: I79e4cb3db78b761cb8525c3c96fb6567311939d5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f362695a339276ea1950c274a5bb8516250552e9 29-Feb-2012 Marc Blank <mblank@google.com> Clean up ConversationCursor listeners

* Remove listener when fragment is going away
* Protect against duplicates

Change-Id: Idfb48848775e8726a59efd5fc251579bff40122d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
a831b2f1ba6d3c18d5e54563df8bae1f589c4257 24-Feb-2012 Mindy Pereira <mindyp@google.com> Use a constructor to create a provider object.

Some were using from(Cursor), and it was confusing.

Change-Id: I49655b4ed013fb4dd47cdefea0bfd850a3fa4517
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
343ffebe391df40713fc4a41ae97d9e08d0b9b4b 22-Feb-2012 Mindy Pereira <mindyp@google.com> Add account capability for undo.

If undo isn't supported, never show undo bar.

Change-Id: I061334e2e9e2bf9834dd5eb4ac94b479877adc21
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
2a25d0c0a533563b4d6105553f621181f896043d 22-Feb-2012 Vikram Aggarwal <viki@google.com> Two Pane Actionbar fix

Change-Id: I379045692245296983e91c2a5b5bcffbe0b9602a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
efc9f120f7f4d9b45c3bf7cb355740956fa5c7c8 21-Feb-2012 Paul Westbrook <pwestbro@google.com> Make the fragment's constructor public

The constructor on fragments need to be public in order
to allow it to be instantiated when the activity is restored

Change-Id: I2915d18602b6039671cdd9ee0ee6615ac23196a2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
674afa42682908640167fc6109b76f6f843e6fbe 17-Feb-2012 Mindy Pereira <mindyp@google.com> clear undo when tap outside of it in any screen.

Some funny business with relative layouts and z-order
and the undo bar. will fix that in a second cl so i can
animate in/out undo bar.
Change-Id: Ia4d3684ff26563e56b09cafb9ee25980162d1168
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
609480e14d4cb999d9b6bb1c224b3584d3f367f0 16-Feb-2012 Mindy Pereira <mindyp@google.com> Get loading folders/conversations off the ui thread.

Use loaders. Pretty.

Change-Id: I0d87ffa8e390f15718c71f05977ff6d331aeb9ca
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b600a83dfe6d0ec0b342de9b11f3b185b048ab93 16-Feb-2012 Marc Blank <mblank@google.com> Allow multiple ConversationListeners

Change-Id: I207e58845b69240f70b9f46673861fe4d450cdd1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
fe06bea4de68a072b0e5a0fc7cefcdfa96143a8f 16-Feb-2012 Mindy Pereira <mindyp@google.com> Make conversationlistfragment a listener on the conversationcursor.

Change-Id: Id8c349d7921ac3f54974f2b402de90b90704fc94
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
f5acda4a4b7c9e8ecacb41cb7d570ef426b6d4fc 16-Feb-2012 Mindy Pereira <mindyp@google.com> Make MailActionBar use viewmodes; make sure it gets updated when view mode changes.

TODO: would it be better to make it an on view made changed listener?
Also, fixes up behavior.

Change-Id: Ib48d54b4cefc39629182d0df942b0f19fa77361e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
9b87568c9e9f1c32a9672b315229866a58a1e757 16-Feb-2012 Mindy Pereira <mindyp@google.com> Add conversation view fragment.

This pulls over the logic that had been in ConversationViewActivity.

Change-Id: Ib617d3c1cb43265a559a18e05842ca186188b3d3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.java
555140c7b7d5129fb2b17df66106cbd6eeef37a0 15-Feb-2012 Mindy Pereira <mindyp@google.com> Make it possible to drill into folders and see conversations.

A little shaky to start.

Change-Id: Ica1a4aac15cec18143b666b9e06593db3d550f5c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.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/ui/ConversationListFragment.java
dde58f4f271d4bd4d5b58aba7edfd03123f2af88 10-Feb-2012 Vikram Aggarwal <viki@google.com> Fix the incorrect cursor column lookup.

Also save selection state to avoid a NPE when reading
mSelectedConversations from savedState.

Change-Id: I7798c5d860abe0cc2d390313710e466f7a30ab06
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
80aeac5356b5a14a5ef2aff8f0f72a464c9a3cb4 08-Feb-2012 Vikram Aggarwal <viki@google.com> Show Conversation Lists

Change-Id: Ia4356aaa5ee698cad6f648b9d26a5719ba8076ba
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
7d602884ed70d07a42f1adf999fdf51b258f23f9 08-Feb-2012 Vikram Aggarwal <viki@google.com> Return ActivityController object from MailActivity.

Instead of delegating individual methods, we return the controller
object as the appropriate interface.

Change-Id: I7122a921037c83dc63e9f0987d0f95171061cdf9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
d7a12cd5b5c2639b653d8c671b04844ef02ee01d 03-Feb-2012 Vikram Aggarwal <viki@google.com> Create TwoPaneLayout from TriStateSplitLayout

Minor changes to the OnePane and TwoPane Controllers to hook in the layout.

Change-Id: Ie3fc73ed3fb63441d7ed9b79ce02c2f1e9f51e36
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
fa131a2ff399fd1d544f759b063268fb4e8a3e70 02-Feb-2012 Vikram Aggarwal <viki@google.com> Make ViewMode focussed and small.

1. ViewMode is no longer aware of tablet versus phone UI. This is the
responsibility of the ActivityController now.

2. onViewModeChange receives the new mode as an integer rather than
the ViewMode object.

3. Rather than a plethora of isXMode() isYMode() methods, client
classes need to manually check getMode() against ViewMode.X
ViewMode.Y constants.

Change-Id: Ib06196671ad49328c40cc9237667c0a1daf328f7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java
b9e1a353c6a173a2885642dbcc1939f3281f29f7 25-Jan-2012 Vikram Aggarwal <viki@google.com> Create ConversationListFragment

The ConversationListFragment does not do much right now, but the
framework is in place. Next steps will include showing the
conversation list and allowing for conversation selection and the
Contextual Action Bar.

Change-Id: I130bb77a93bd4f58b189cb6ce47adc9e09f8e6ae
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ConversationListFragment.java