History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6ac079b4d236120232f59c080aeeb17ac16c7c8b 16-Oct-2014 Jin Cao <jinyan@google.com> Cleanup of drawer drag

- Don't do anything in enableHardwareLayer if it's already enabled
- Add onDrawerDragEnded in TPC for consistency so it has access
to all 3 drawer events.
- Change ObjectAnimator back into ViewPropertyAnimator

Change-Id: If78b833d35f0c37f6b9e4d8c644c8a6714bfc7b7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
4c91a8ce54b7874309ff1d4cb8c9c439fe308375 16-Oct-2014 Jin Cao <jinyan@google.com> Enable hardware acceleration for drawer drag

b/17936591

Change-Id: Ie9b435a1c0af457a0524b95a20ece3f3cb829011
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b298ad0629d3eb31002e7595d42e65151d6ae90b 15-Oct-2014 Jin Cao <jinyan@google.com> Hardware accelerate drawer cross-fade

Use LAYER_TYPE_HARDWARE to accelerate the cross-fade animation.
On my nexus 7, each animation draw method went from ~8ms to ~6ms.

However, since we are now using an ObjectAnimator instead of the
View's animator, the cross-fade animation no longer starts at the
same time as the TPL translation animations. I don't think this is
an issue but I want to point it out.

b/17936591

Change-Id: I56f6debb50b50b5dd249b3c8c1809398970ad7a3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
fbb0c7f6b294337ab8e2a43daebbdd901ea9442b 10-Oct-2014 Jin Cao <jinyan@google.com> Cross-fade the drawer on toggle/drag

b/17936591

Change-Id: I7720b5091d22d3361fd3660976674a725d9563c7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
14b32a16d26db5403c830c2e7a59bdfdcdcef493 29-Sep-2014 Tony Mantler <nicoya@google.com> Minidrawer updates for selected state

Does not include item background changes

b/17536955

Change-Id: I636a4595ce1b9b4d3e5cd32973b8050a540d067f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
811c704ddcf180c4fd4ac0e2800ea8eea34af3e9 20-Sep-2014 Tony Mantler <nicoya@google.com> Drawer updates for darkened icons

Add solid assets
Shade assets to black when selected
Refactor footer items into DrawerItem
Refactor DrawerItem

b/17524208
b/17536955

Change-Id: I9188c10fea0ecef5ecefe075f369e354449a59b0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
79ed5d4a9fee26244d0311c92a65568f214cc909 19-Sep-2014 Tony Mantler <nicoya@google.com> More drawer updates

Make ripples in drawer work
Fix touch highlight in footer items

b/17524208
b/17536955

Change-Id: I07d0ff5af47a08c84d636c40b1feffbbc04e17aa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
e1dc3e7668389357915c615f2edfa1601005ad6d 19-Sep-2014 Andrew Sapperstein <asapperstein@google.com> Expand drawer to be under status bar. b/17569398

Change-Id: I345095c4679f83a315bb3d5909b9d2d7fbece111
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
cdfc653dc200693ae4d88b42b3ac18be2f75469a 11-Sep-2014 Tony Mantler <nicoya@google.com> Label minidrawer items

b/16820124

Change-Id: Ia6099c2e80439a6995ef2d8db72cb812d921cd7c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d4aa19ee7b7ba6f47111b7c2dc40e747430b9704 03-Sep-2014 Tony Mantler <nicoya@google.com> Tidy up mini drawer account avatar adapter

b/16872019
b/16980813
b/17373303

Change-Id: I535cddf21d7e1dd07dafa57c373f9f5a7f90a7c5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
6ba96202717beb8d89f9996520dab0bf5689fc8c 02-Sep-2014 Rohan Shah <shahrk@google.com> [QUANTUM] Update folder_item for widget selection

Changed a few things around (Rel -> LinearLayout) in the
folder item view and added spacing for indenting child
folders.

Bug: 17260359
Change-Id: I648a96c21c5f071269d859ae76a0dd45de409a1a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
db1564cc9699331c972d2bfe86881e07345ea84d 29-Aug-2014 Tony Mantler <nicoya@google.com> Create mini drawer avatars using an adapter in FolderListFragment

b/16872019
b/16980813

Change-Id: Ia1335248942b0c05ce56198cc09cb6b4ad5b2c5c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
12a05d22f6ac528e96716de9a451c5b7bee7a26d 29-Aug-2014 Andy Huang <ath@google.com> remove drag/drop code

Bug: 17322937
Change-Id: Idc21156e6d5e9ea4e83e3c17e92a66388ffc7a6a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ed0231de8677cd8ba3bde18606549074d8da10c2 23-Aug-2014 Rohan Shah <shahrk@google.com> Prioritize Inbox for IMAP in Widget Folder Selection

Filtered folders into sections if they were inboxes or not
and compiled the final folder list from those two sections.

Also split the method into two to clarify the two big
functions in recalculating the folder list.

Bug: 17134514
Change-Id: I751472698125aeeacea0f6e34a89b569a4e4a388
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
50038b641b12af362eacae621007d143726454f2 19-Aug-2014 Tony Mantler <nicoya@google.com> Drawer resource updates

b/17071718

Change-Id: Ic285d6752be6c752a2138c862286d782b62731ec
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
1aaf4f9954040322bee0ccc77a18eb731a65c781 11-Aug-2014 Tony Mantler <nicoya@google.com> Add bottom margin for last footer item in drawer

b/15966080

Change-Id: I6adff812aee597b6bb0943bde11e39aa563fe06f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
5b317924c7c764954870501d99bfc57a243f6319 06-Aug-2014 Jin Cao <jinyan@google.com> [KBNav TL] Basic navigation in TL

Support basic keyboard navigation in TL. CV is not implemented
so interaction between TL and CV once you open a conversation
is not guaranteed.

On TL, left arrow goes to minidrawer/drawer, right arrow goes
to CV if open, up/down works as expected, TAB goes to ComposeBtn.
On drawer, up/down as expected, right goes to TL, TAB goes to ComposeBtn.
On ComposeBtn, left/up/TAB goes back to TL, right/down does nothing.

Currently no way of accessing the action bar menu because I don't
know what id to set to focus.

b/16636060

Change-Id: Ia9bae322e41a53beed20702fba301fbfd9100aa3

Conflicts:
src/com/android/mail/ui/ConversationListFragment.java
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f58e4c3c942033fce12b5f75f9e4d9e708c9ea6a 10-Jul-2014 Andy Huang <ath@google.com> mini-drawer. new tablet UI.

New MiniDrawerView class for a minimized drawer UI with shortcuts to the
main drawer logic to switch accounts and folders. The "drawer" is now
always visible except in portrait conversation view.

Can't easily use an actual DrawerLayout because:
-drawers usually occlude other views, they don't push
-we have that omnipresent 'mini' version
-we want custom control over dragging to trigger a fancy animation (not
just edge swipe!)
(I'll revisit this later.)

Even ActionBarDrawerToggle alone can't be used w/o DrawerLayout, so for
now, all of this drawer logic (dragging not yet implemented) is from
scratch.

TwoPaneLayout no longer "shifts" its panes to transition from TL->CV in
landscape; the panes are now fixed in position. Not yet implemented is a
'conversation-visible-but-not-marked-read' state necessary to avoid the
initial gray expanse there right now.

Bug: 16147175
Change-Id: I021aaff15afebb76db6722265e2a592213674405
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a82089dd7b9a48eac5eeb30934ee3a3123646ebd 29-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Support header views in the folder list.

Change-Id: Ib5e85a4a74f021392cebefc3b3f2945e7f4b0643
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
3e95fe9af0d1f8d7557d6b8e9daf4cf08aade140 26-Jul-2014 Andy Huang <ath@google.com> wire up Settings/H&F on large tablets

Didn't ever work; it lived in the overflow before.

Bug: 16550091
Change-Id: Iabbb6f928f8f005e372f446093d85f13fae2222b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/ui/FolderListFragment.java
cc6b6dd1f7677885a3fa2de30468978f246b7a02 24-Jul-2014 Andy Huang <ath@google.com> kill floaty footer

it's dead. code is interfering with mini-drawer work.

Change-Id: I7a9d1920e34ee3865528f00d4c66403b00008752
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
166a5cfa2d48aca971501e829b65698e50708191 18-Jul-2014 Tony Mantler <nicoya@google.com> More drawer visual updates

b/15966080

Change-Id: I0f222ba97ec9e0f71c0504af83c2662f2da539ac
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
88856133f998614ffb08a230e090c85de156ac3b 17-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Merge "Support for account switcher." into ub-mail-master
917367c0120d29ef2a274cac8341d7dec48ec2dd 16-Jul-2014 Tony Mantler <nicoya@google.com> Remove standalone feedback item, update H&F and Settings icons

b/15966080

Change-Id: Iba40f5aa57db897c0ec25bd0e7967f0f7fc032d1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
16027b7fabaf488f10fe90a41af4ece25cf1ef10 09-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Support for account switcher.

Refactoring to better support new design.
Also creates a preference for storing recent accounts.
b/16159162

Change-Id: Ie2ac446f4031311d1c3470935af4c1599573db9b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2b806edc62eb8e83c77edc471fda4652281a15c4 11-Jul-2014 James Lemieux <jplemieux@google.com> Replace all references to UnifiedEmail's com.android.oldbitmap with
equivalent usage of framework's com.android.bitmap.

A small refactor of AccountAvatarDrawable.drawBitmap(...) is also included
which produces no functional change.

Change-Id: Ic67690cde56de6ca691ac8647ef02865b766ca62
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
54022ee4c98f02401ca567e643f24ed42aebe203 07-Jul-2014 Tony Mantler <nicoya@google.com> Add Account/Folder change observer to AccountController interface

b/16131478

Change-Id: I4fa9fe3fdb4edcf1e2d4d551d5d93f6301bc1eae
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f7cf01fce296bd036740ada529d4ea8502692e88 02-Jul-2014 Tony Mantler <nicoya@google.com> Remove DrawerClosedObserver, tidy some member visibility

Change-Id: I027015f1ec3b6999e6a4946c3292148bf16eb1c7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a57da3c151ae174bc8621af79f3f09392ed90953 10-Jun-2014 Ray Chen <raychen@google.com> Implement support for help library
b/12068507

Primary changes:

* Merge help and feedback as requested by the new guideline
* Determine help context by the view mode (list or conversation)

Change-Id: I6d9d7cc56063e7eedfe6db18c2c363e9b4d07cef
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
8913ca6aebe6017efe8060b61b8ad38eda95aa8b 15-May-2014 Andrew Sapperstein <asapperstein@google.com> Allow alternate sources for contact images.

Makes some classes that overridable in order
to provide alternative implementations:
ContactResolver, ContactResolverTask, ContactLoaderCallbacks,
and ContactPhotoFetcher all can be subclassed to provide new
behavior. Also added hooks in ControllableActivity
and MailIntentService to override building these classes.

NotificationUtils was also updated to force all calls
through MailIntentService which can be overridden.

Finally, moved the BitmapCache used in conversation list
to the activity level instead of at AnimatedAdapter-level
(which is effectively fragment level). This speeds up subsequent
queries for images dramatically. We reset the cache when changing
accounts.

b/11387812.

Change-Id: Ie70d800862b073163ccbfa5295d6950e57d64009
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
816031811147b2038b34b80f46a194d030e71152 01-May-2014 Jin Cao <jinyan@google.com> Revert empty folder check because it doesn't work for search

Checking for empty folder uri caused search to always land on
the primary inbox.

b/14319452

Change-Id: I30341fa6ebb75dedab0d49419787e4141e24f708
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
64ee31fc16ca2f1f2b68d44ec6856fe7b7bc8029 30-Apr-2014 Tony Mantler <nicoya@google.com> Null check mAccountController and initialize earlier

b/14417722

Change-Id: Ie906eb547f57296229abe42eb858469a2c8a26bc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
cf44d22d342720f9f806d55373c2a3cc974c07c0 28-Apr-2014 Tony Mantler <nicoya@google.com> am d5234bc5: Switch to default inbox if no folder is selected

* commit 'd5234bc50c834573bb79f03be7571886afe37571':
Switch to default inbox if no folder is selected
d5234bc50c834573bb79f03be7571886afe37571 28-Apr-2014 Tony Mantler <nicoya@google.com> Switch to default inbox if no folder is selected

Upon new account creation, we might enter the main activity after
the inbox has been synced into place, but we won't have navigated
to it yet. As a result, the selection was falling back to the first
folder in the cursor, which was the starred folder.

We can detect this case by observing that mSelectedFolderUri is empty.

b/14319452

Change-Id: I4402f42acd7c845ee33db91d3a0037a068391b85
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
9d83aaf6f38f372d5ad7d006863081fee378b01f 08-Apr-2014 Martin Hibdon <mhibdon@google.com> am e134c876: When a new account is added, switch to the inbox

* commit 'e134c876b45631275912f8f4ad0527541b4746cc':
When a new account is added, switch to the inbox
e134c876b45631275912f8f4ad0527541b4746cc 08-Apr-2014 Martin Hibdon <mhibdon@google.com> When a new account is added, switch to the inbox

b/13793316
The thing is that we create the virtual "starred" folder
immediately upon account creation, but the inbox won't be
created until we do the first sync. Now, in FolderListFragment
onLoadFinished(), if we go from a state of having no inbox to
having one, we'll switch to it automatically.

Change-Id: I2247073257569e7414d29ca8828b47d7cbca7cdc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
055adcdb4b792988460175002a1bd53763aa2bce 01-Apr-2014 Andy Huang <ath@google.com> disable floaty footer

Change-Id: I66c0d8a495dc3073e3f5e7b38b701bd721d66d35
(cherry picked from commit 3edaf6a77c10ac99bf543e309fe1593c58391b58)
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
59495d41bf93f4c915a9bd758505fd1ff6b3c257 14-Mar-2014 Martin Hibdon <mhibdon@google.com> Change the layout of the account selector

b/12099292

Change-Id: Ie14ab2a534bacd915421a7083c9c3e3cc6b01a4b
(cherry picked from commit c7849b23a73d699b5e7f199f0a3afce5b9dee7a6)
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
3edaf6a77c10ac99bf543e309fe1593c58391b58 01-Apr-2014 Andy Huang <ath@google.com> disable floaty footer

Change-Id: I66c0d8a495dc3073e3f5e7b38b701bd721d66d35
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a71d756a0e80f63b8b4ebd91451c3a79929e1a4e 28-Mar-2014 Scott Kennedy <skennedy@google.com> Rename com.android.bitmap to com.android.oldbitmap

This is causing some conflicts, and we want to replace this with the
new library in the near future.

Change-Id: Ie607e20a96861a6282e27410fea859f0ee1737cd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
c7849b23a73d699b5e7f199f0a3afce5b9dee7a6 14-Mar-2014 Martin Hibdon <mhibdon@google.com> Change the layout of the account selector

b/12099292

Change-Id: Ie14ab2a534bacd915421a7083c9c3e3cc6b01a4b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f8c59b0198bd3230ef669c5e258b86443e7ed682 20-Mar-2014 Andy Huang <ath@google.com> add analytics for clicks on drawer footer items

Also start segmenting menu_item clicks with useful data about the
click's context (like view mode, compose).

Bug: 11061485
Change-Id: I132117921bb45f81d2cd7d8433ab72543c9723fd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f8cc9a6aa9cf059b2cde9d555884251d290fe780 19-Mar-2014 Andy Huang <ath@google.com> don't footerize folder selection activity

Bug: 13545945
Change-Id: Ife383519db6b5224835ef54fc0441e33875ec167
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
61f26c2d1c1d3735cf883b58fe7e45550bb1a54c 14-Mar-2014 Andy Huang <ath@google.com> add floaty footer to the drawer

* settings now moved to drawer
* swapped out footer assets to match sectioned inbox icons
(TODO: even newer assets)
* tweaked footer misc to match mocks
* split out the drawer list's scrollbars a la conversation view
* disable floaty footer on short screens (e.g. landscape phone)
* move AAC's drawer-related APIs from Account Controller into
DrawerController and expose more, like raw access to drawer state
* drawer is now white, footer is gray (expansive tablet unchanged)
* align footer items with sectioned inbox items
* only activate the footer items after closing the drawer (smoother,
better fit for Feedback)

TODO: tweak animations, especially when scrolled near the bottom

Bug: 11061485
Change-Id: I3e70d994934c846061efbfb8d118604a965d344f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
10fcd645f703799326da326630b663df69f91508 03-Mar-2014 James Lemieux <jplemieux@google.com> Move Help & feedback to Nav drawer of Email.

b/11061485

Gmail remains unchanged due to this checkin.

HELP and SEND FEEDBACK are now the two bottom-most drawer
items in the Navigation drawer of the Email application
when it is present or in the overflow menu when it is not
present.

SEND FEEDBACK still behaves as always.

HELP has been redesigned so that it displays the help
content in a local webview rather than using an external
browser in the Email application.

Change-Id: If1bdba26ac2caca79c81205a409c67659cd49653
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f479bd60d01e5e752620bcb946d079c697a543f6 04-Mar-2014 Andrew Sapperstein <asapperstein@google.com> RTL: Properly align drawer items.

Fixes b/12719552. Previously used
BidiFormatter incorrectly. Now using
textAlignment's viewStart to align correctly
for all locales.

Change-Id: Ibffebc3d108d38ba6be9d38aefc74f473854bcbb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
26a20758413f0f8629ea71a0943304e3ae740165 01-Mar-2014 Tony Mantler <nicoya@google.com> Get rid of Account#name

b/13249115

Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
874b2354e7662f43609a51d47f7ac02fd61a8bcc 26-Feb-2014 Martin Hibdon <mhibdon@google.com> Merge "Make drawer available in Search and ConversationView" into ub-mail-master
371a71c7f41155a83526e4745c993585c236b9d7 19-Feb-2014 Martin Hibdon <mhibdon@google.com> Make drawer available in Search and ConversationView

b/8737446
This is more complicated to do correctly than it seems like
it should be: When we are viewing search results, there is
actually a separate activity instance on top of the main
conversation list activity. This is true for both one
and two pane layouts.
So now, when we launch the search activity, we do it with
startActivityForResult. If the result is set upon return,
then the parent activity will know to navigate to a different
folder or account.

Change-Id: I5b780c4ce5bb0a1e55364cc4df280346900c5df5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a1b5b1b872d58efaadf4ad3cc77ff2354a0e7bcb 25-Feb-2014 Andrew Sapperstein <asapperstein@google.com> Make changeAccount protected and add strings.

b/12552407.

Change-Id: If030a27b1ff1577cc84067b9e1222c8008268dee
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
643b6b458ba2286e72e16049b407875dc833dc11 07-Feb-2014 Andrew Sapperstein <asapperstein@google.com> Support overriding AccountsAdapter.

Allows inflating a new drawer fragment
via a resource overlay. b/12004407.

Change-Id: If9551da3ed3e74b07d1c24d91915221f9245a3bb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
87c2f00ecf8f5755eb0fced359bdedcbde5ed4b8 05-Feb-2014 Andrew Sapperstein <asapperstein@google.com> Make tapping account keep inbox highlight.

Previously, if you were in the default inbox
of an account and tapped that account in two-pane
mode, the highlight on the default inbox would disappear
because we tried to compare a Uri to a FolderUri (which
always fails).

Change-Id: I2040896c008ac805c4facff0dd3e9cb944c48ece
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
773f2e6e6994f38bf7d2679f2412d2f14f22c424 05-Feb-2014 Andrew Sapperstein <asapperstein@google.com> Use MergedAdapter in FolderListFragment.

Instead of using one adapter that contained the accounts
and the folders, the adapter now contains two sub-adapters,
and AccountsAdapter and a FolderAdapter. Functionality
should be unchanged.

Change-Id: I18c945cdcf9519549ab3c2886be033b398af086c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
009f1b55b555638fd7276f8b996243a5d4ba7681 20-Sep-2013 Tony Mantler <nicoya@google.com> Virtual folders are valid folders, don't kick back to the inbox when we're viewing them

b/10847930

Change-Id: Idd55ede3c94b060402dd51486620154cd9ac9015
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
03f1239aec39f8e3e3ade0e8c78df5836d5f4fc2 04-Sep-2013 Alice Yang <alice@google.com> Merge "Revert "Revert "Fix hierarchical folders""" into jb-ub-mail-ur10
ebeef1babe39de2c1d97429a93ea956c655cd377 04-Sep-2013 Alice Yang <alice@google.com> Revert "Revert "Fix hierarchical folders""

This reverts commit 6e604d33ee0aab10a72c836af6e83ace315f4b79.

Change-Id: I8eb30a3b38919e0efb694fc571b166a89258f517
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b09b7cda41b1cafce57d52707f8e33823160aafd 03-Sep-2013 Alice Yang <alice@google.com> Merge "Revert "Fix hierarchical folders"" into jb-ub-mail-ur10
6e604d33ee0aab10a72c836af6e83ace315f4b79 03-Sep-2013 Alice Yang <alice@google.com> Revert "Fix hierarchical folders"

Temporarily so we can take TOT UR10

This reverts commit ad41814e704f0e7575472e4e7b60dfaf68b2f3b1.

Change-Id: I70f7b3b424c3da3785181c673c7c4f80737892aa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
21558462e8a7a686a8fcffd9f2e824c997a11067 27-Aug-2013 Scott Kennedy <skennedy@google.com> Merge "Fix hierarchical folders" into jb-ub-mail-ur10
20ca5c668c4b923ed7366cb198f34a9344dcae3f 27-Aug-2013 Tony Mantler <nicoya@google.com> Disable auto-scrolling of the drawer for now

b/10396017

Change-Id: Ic7e602d90eb9dbd7730cfea1384f5b0c3a7df5d0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ad41814e704f0e7575472e4e7b60dfaf68b2f3b1 11-Jul-2013 Scott Kennedy <skennedy@google.com> Fix hierarchical folders

Stop adding stuff to the back stack, because we never remove it.

Remove some unused code related to hierarchical folders.

This allows nested folders to work properly.

Bug: 9762055
Bug: 9694899
Bug: 9565828
Change-Id: I8ba2e96e6b478dd73e11fdcaf2c02643f1370e57
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
58952673f871db796ff7dcc3968469816a34d45a 26-Aug-2013 Tony Mantler <nicoya@google.com> Change drawer scroll adjustment to jump scroll

Smooth scroll was taking on the order of seconds in accounts with lots of labels. b/10396017

Change-Id: I08b5c4c65338242b4e2a79fecd9472597fef83f7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.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/FolderListFragment.java
b29890a632b0068c8b5d66c417b1824f0f089d1f 31-Jul-2013 Tony Mantler <nicoya@google.com> Scroll drawer to selected mailbox when showing drawer

b/9730913

Change-Id: Ic621bbd6025d9087f37c309c308e7cd62e3e480e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
73c015e14f5f0f729e0c77603d4903bafdf848bf 23-Jul-2013 Tony Mantler <nicoya@google.com> Clean up some of the mess in the FolderListFragment

Change-Id: Icff0e5a50c1f9a7bdeef7f34ada7a794a69d6e69
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ea5f307daea0f77cc1ce4701de759a575a7b8202 24-Jul-2013 Tony Mantler <nicoya@google.com> Enable Bidi, add correct tags to folder list items

b/7221227

Change-Id: Idf4b909811bf7c74e6d202346f21506c4cf875dd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
259df5b9e11908c8ef7c91483924891dd96b3c27 11-Jul-2013 Scott Kennedy <skennedy@google.com> Add a new FolderUri

This will allow us to add query parameters such that Uris will still
appear to be equal, regardless of differences in the parameters.

Bug: 9780067
Change-Id: Iafe39763b3ee448cf02536df89caa736500dfdaf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a3bbac02817b12e7641ba67f95d60ecd7794b500 04-Jul-2013 Vikram Aggarwal <viki@google.com> Parent folder as a URI

1. Change folder to a URI
2. Fix references.

Bug: 9694857 Populate folder.parent correctly in the provider
Bug: 9694899 Clean up the hierarchy folder code

Change-Id: I4eff33d0259777e447cfe5769813db990f142077
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
83df39e24ae6369dc5065f3e5372b4756861f8b9 11-Jun-2013 Vikram Aggarwal <viki@google.com> Remove more unused code.

Drawers always show accounts. Nothing else does. Remove all misleading
code that sets arguments that are always true. This has the happy
side effect of reducing the number of arguments to construction
methods.

Change-Id: I6fc7b74328c1243e10640dce083d64296f17f9af
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
c23378b93487fa54088a11aa660dd6aa8f16802d 11-Jun-2013 Vikram Aggarwal <viki@google.com> More cleanup

Change-Id: I61acdfd84c1958eca05437e03734581f7ace6b25
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a3abeed709c97fb4c4611adf24d7789c0e6964dc 11-Jun-2013 Vikram Aggarwal <viki@google.com> Nested folder cleanup

With the removal of nesting in the drawer, we can simplify some of the
code in the FolderListFragment

Change-Id: Ib0d7c25151c4fd358d9efb3dc37d75c46be1e374
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
564652efae992879797a361f39b406477a8e620e 05-Jun-2013 Vikram Aggarwal <viki@google.com> Explain FLF

Change-Id: I6e6a38b1627278db1573b2a671ebba452a705ad7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f51ce08b103e901883eb4e340ee9ad64766c75a2 05-Jun-2013 Vikram Aggarwal <viki@google.com> More documentation

The DrawerItem was poorly documented. Adding some documentation to
explain its functionality.

Change-Id: I650d3e085aae49020aeaad34df4ef2376ee0e1aa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
0128cf16c5a300f14d976711ab55e7d0e7e36201 05-Jun-2013 Vikram Aggarwal <viki@google.com> More documentation, reduce confusion

"Sectioned" used to mean grouping in the FolderListFragment. Now it
means "Sectioned Inbox". To resolve this confusion, FolderListFragment
is now "divided" into groups, rather than sectioned.

Also, adding comments to the DrawerFragment to explain its purpose.

Change-Id: Idffcee56e55b05d9653eed6ea51f777298c53d7d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
feb5b1ef0c9489c1ea727177f8bd423250b64990 29-May-2013 Scott Kennedy <skennedy@google.com> Fix hierarchical FolderListFragments

We were never using most of the args we set.

There are multiple active FLFs (drawer and subfolder). Both of these
are notified of folder changes, and then they check if that folder
exists in their cursor. If not, they switch you back to the account's
default inbox. However, the cursor for the drawer only has top level
folders, so this breaks. Now, we have a full folder list cursor in
each FLF, and this is used for that check.

Bug: 8575001
Change-Id: I47f17fb9c5d108b2388db5ba918f6413a018b414
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f61bf1c68006b023052860bbed4cad78f4a3fc41 10-May-2013 Vikram Aggarwal <viki@google.com> Improvements to listening to folder updates.

1. On folder change, stop listening to changes to the *old* folder.
This should reduce incidences of folder list fragment refresh.

2. Only set the selected folder type when it is unset, or when we
transition to the default inbox.

Bug: 8907179 Nothing Highlighted After Selecting Recent Label
Change-Id: I564ab12a74fc064d2cecaf73c26848b838c5c020
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
427afc1323cf3091f327bc3df5fe4cb1048b2a88 09-May-2013 Scott Kennedy <skennedy@google.com> Eliminate log spam

Change-Id: Iea73d2a4b05ec73b20e19ebd7592bd77cb7e94c1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
8a72b8590d9166ada55f69eeb083d2b8c5c915c9 02-May-2013 Scott Kennedy <skennedy@google.com> Only pop the user to the inbox when the drawer is enabled

Bug: 8788742
Change-Id: I97130b088956a25617e55f5454e980034461ce4a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f699371287cc4f4d24a4d6eb9d75488554807257 01-May-2013 Scott Kennedy <skennedy@google.com> If the current Folder disappears, jump to the account inbox

We were leaving the old one up.

Bug: 8540327
Change-Id: Ifa18995052d68fc00364992d18bf1e61e6f8925e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a1b59dcb4a8aaef821aa2f5c996f715ef130c985 01-May-2013 Vikram Aggarwal <viki@google.com> Start the conversation list load early

Using a hacky boolean to keep state. Will switch to listening to drawer
state in a subsequent CL.

Bug: 8743683 Latency when switching accounts/folders
Change-Id: I94930b1886cd57c33cc1fa1e851aba0d1ebaa4d3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
77ee0ceaefaa9be699a20bfbe162f4c0ef83c6e1 29-Apr-2013 Vikram Aggarwal <viki@google.com> Get inboxes from the folder watcher

0. Create a folder object in the watcher, off the UI thread.
1. Pass the folder watcher back to the controller
2. Get the inbox folder directly from the watcher.
3. If that fails, revert to the existing logic.

Bug: 8743683 Latency when switching accounts/folders

Change-Id: I36baaab675ff65b43ce5ab1ad3485259a700ce1f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ce71933633c59b5bb923cad5cd259b1ab2418c4d 30-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Merge "Add selectors for drawer item state change" into jb-ub-mail-ur9
192508a2a53c39c6df34e4079281ccd29aeb2d34 29-Apr-2013 Vikram Aggarwal <viki@google.com> Don't get stuck in unsynced accounts

When we switch to an unsynced account, we never receive a folder
object, even though we start a loader. So when account changes happen,
unset the current folder URI and current account object.

Bug: 8744468 Could not select synced account when others were unsynced
Change-Id: I0dd6f584a1cb74e6aa8e03e770ca92f370cd7fed
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
01d291a1efb04752f3445c97f0494501f95d5645 29-Apr-2013 Scott Kennedy <skennedy@google.com> Merge "Close drawer when not changing folders" into jb-ub-mail-ur9
8bcb7c5c37ffd5a1a0c5f4efbcab084830d5e033 28-Apr-2013 Rohan Shah <shahrk@google.com> Close drawer when not changing folders

Drawer should close upon clicking the currently
selected folder or clicking the current account
while viewing the inbox.

Change-Id: I1f4827e9386289172ea3b1137c393dd1d6fc587c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
1aced4cbbb00618e6e1eb34438b5769ef5180e69 29-Apr-2013 Andy Huang <ath@google.com> fix 1-pane drawer overdraw

Ensure DrawerLayout only has one content view (or else it will double-
draw scrims).

Ensure the drawer itself has an opaque background to enable faster
clipping codepath in DrawerLayout.drawChild(). It must be the drawer
itself and not a child that has a background.

Bug: 8753305
Change-Id: Ib3fd18fe5e6fda5738adc4fd12ea6b09034e78ca
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
c1e4506e27921c69e8b4441e6ff4c1b105a37b06 28-Apr-2013 Rohan Shah <shahrk@google.com> Add selectors for drawer item state change

For folder items and account items, add a selectors
in drawable and color to allow for an easy state
change (highlighted/focused/unselected).

Change-Id: I618bcb70ca72c9849cf90e9b6662092822e4862e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a1ee97806aed01ca3293dd23fcf02d46a6d9e6f0 27-Apr-2013 Paul Westbrook <pwestbro@google.com> resolved conflicts for merge of d0204cff to jb-ub-mail-ur9

Change-Id: I16aa573b191f3c6e97ef69a7192558905507c32a
b905f0ea18ee0dc5774adb29c57cd7c122058c71 26-Apr-2013 Rohan Shah <shahrk@google.com> Change UI

-Removed accounts recents
-Changed colors
-Added radio button assets for accounts
-New header names for sections in folder
-Shadows, folder selection dialog modified

Bug: 8720403
Change-Id: I5b9379a4fe323bcc25fb0ed943ddc8ec7880a6be
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
687e64deeafade4709bf0acac1076776bc9ab9a9 25-Apr-2013 Rohan Shah <shahrk@google.com> Remove account from widget folder selection

For widgets, we should not show accounts. Removed
from list by adding an instance var to manage it.

Bug: 8713654
Change-Id: I1cb8b219e67e6d61e6e767a27077b1b8c31ccd3e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2abb0106b2ad877d20f62813e10e76bdd6687eac 25-Apr-2013 Vikram Aggarwal <viki@google.com> am c31799d5: Merge "Fix inbox not highlighting when pressing back" into jb-mr2-dev

* commit 'c31799d5784c08e4211a24e6d97944b2f0bbc573':
Fix inbox not highlighting when pressing back
5a941789285882b8cbe038d079b7e3e1cfae850c 24-Apr-2013 Rohan Shah <shahrk@google.com> Fix inbox not highlighting when pressing back

We weren't setting the folder type correctly
when switching accounts, which led to the system
folders being unable to have a highlight state.
In the case of the FLF, only inboxes are registered
as "SYSTEM" folders.

Bug: 8710294
Change-Id: If3cb320a8d9edb5b92f42b4405ce4f879ba9a492
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
819385e9f1556cbd057b734bec518ae1ab9ad9a3 23-Apr-2013 Rohan Shah <shahrk@google.com> Fix same account click clearing convos

When clicking on the account name multiple times
while in the inbox, there were issues with the highlight
going away and the conversation list becoming completely
empty.

Added logic in the FolderListFragment when clicking on
accounts to re-highlight the inbox item when necessary
and not reload the account/inbox.

Bug: 8689432
Change-Id: Ie217ae0feecb3d80bab8ca4d2c53db070b499fe4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
0f73d905c5e935a5280f8eb647cc924c2854b7de 20-Apr-2013 Rohan Shah <shahrk@google.com> 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: I859882b40a8cdf86d0b825eb7e4203b4e3516ecd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
4cbb0da3cd701ee0c06237ded965648d68c663c8 19-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Properly implement clicking active account.

Fixes b/8656442 while preserving fix of b/8470761.
Instead of reworking changeAccount, we now have a second
method called switchToDefaultInboxOrChangeAccount
which is called by FolderListFragment. It does the folder-switching
specific code before going into changeAccount. changeAccount is
now back to its original code which is also run when you open
from a widget or notification.

Change-Id: Ib4b6f68e7464e947028cc870625fe6a9d8afe00e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
70e9ab3f498a6ea5f932b69328331489f5b97f9e 19-Apr-2013 Scott Kennedy <skennedy@google.com> am 0bb0d9e8: Merge "Remove avatar photos and letter tiles" into jb-mr2-dev

* commit '0bb0d9e8ceb9f5e9e4f9cbb85b38f8ef16e30bd0':
Remove avatar photos and letter tiles
0bb0d9e8ceb9f5e9e4f9cbb85b38f8ef16e30bd0 19-Apr-2013 Scott Kennedy <skennedy@google.com> Merge "Remove avatar photos and letter tiles" into jb-mr2-dev
f80faaee5da48160d4b482fb768679b34a58757f 19-Apr-2013 Vikram Aggarwal <viki@google.com> am 436a6fe8: Merge "Avoid IndexOutOfBounds with Folder List" into jb-mr2-dev

* commit '436a6fe81bed869fa6a30c7121a7c4dbd1f30b7d':
Avoid IndexOutOfBounds with Folder List
436a6fe81bed869fa6a30c7121a7c4dbd1f30b7d 19-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Avoid IndexOutOfBounds with Folder List" into jb-mr2-dev
6285641c31613e3eb57102cfa91b38d37f6104e2 19-Apr-2013 Rohan Shah <shahrk@google.com> Remove avatar photos and letter tiles

Removed the calls for retrieving photos and moved over
the account to the left.

Bug: 8659026
Change-Id: I12f00dc7b092b8a509035969a049edf11049112c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ed925d799c0b342de45e71164ff0232b4ba9a4e8 18-Apr-2013 Rohan Shah <shahrk@google.com> Avoid IndexOutOfBounds with Folder List

There is a framework issue that causes isEnabled() in
the BaseAdapter to be called out of bounds of the list.

The bugitself is either:
1) In our code somewhere, where we're not updating views
2) In the framework, in which case we'll need a simple
demo to convince them.
Bug is filed under: 8658063

Bug: 8572004
Change-Id: I2193ef8148db0991e7b840b4252005305b4a561e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b9c23da3c3d0eebf980552a0f95bbee4e11368af 18-Apr-2013 Vikram Aggarwal <viki@google.com> am 4af50375: Merge "List updates after contact photos are loaded" into jb-mr2-dev

* commit '4af50375822ed368616af971973a8e8062262f6f':
List updates after contact photos are loaded
7fc25a10aeab90bcd978b1bd00414f7209e1de40 18-Apr-2013 Rohan Shah <shahrk@google.com> List updates after contact photos are loaded

Call recalculateList() after the account photos are
loaded so we don't have to see those hideous default
contact photos.

Bug: 8654043
Change-Id: I3c4768b785e0888b5e24a251be82bb84c356e523
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
e76d3396807c8cc1f4d11d0beb6bd5ee955b38ab 18-Apr-2013 Vikram Aggarwal <viki@google.com> resolved conflicts for merge of c38e0658 to jb-ub-mail-ur9

Change-Id: I3bffe469f863bf38dd8be1fc001e47649a31d8ff
c38e0658fe5fd9775889ee04ee56a91b7934df5e 18-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Add shadow to drawer" into jb-mr2-dev
90a3cfd69afa517076786153e171beef68e45fb0 18-Apr-2013 Vikram Aggarwal <viki@google.com> am bf322ea8: Merge "Remove verbose logging" into jb-mr2-dev

* commit 'bf322ea846aa14503076e85eac20b92015782cd0':
Remove verbose logging
2e13a4be2acbba95a92fb5eefab6b50a6043c8ba 18-Apr-2013 Vikram Aggarwal <viki@google.com> am f18b1173: Show nonzero unread, suppress when meaningless, stop flicker

* commit 'f18b1173c9624d1e0a8fa37ed15a63e9fe4ccdc8':
Show nonzero unread, suppress when meaningless, stop flicker
bf322ea846aa14503076e85eac20b92015782cd0 18-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Remove verbose logging" into jb-mr2-dev
e06c114b3ca18ae26bcb08fa46717f44d621d8ef 16-Apr-2013 Rohan Shah <shahrk@google.com> Add shadow to drawer

As part of the important UI refresh:

For one-pane (phones), add a shadow to the right edge.
For two-pane, change the folder list background to have
the shadow on the right edge and the normal gray color
elsewhere in the background.

Bug: 8570229
Change-Id: I390efb8dc972635c57e7a5c50bed5b79eb236d1a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f18b1173c9624d1e0a8fa37ed15a63e9fe4ccdc8 17-Apr-2013 Vikram Aggarwal <viki@google.com> Show nonzero unread, suppress when meaningless, stop flicker

0. Don't show unread count when unread count is zero.

1. Don't show unread count for folders where it is meaningless.

2. Don't update the unread count when an account changes. At some
point in the future, a folder will change too (we will load an
Inbox). At that future time we already update the unread count.

3. When switching account from a user folder, the inbox is not
highlighted because the selected type is not set to system. Fix
that.

999+: How many MR2 bugs can you fix in a single CL?

Bug: 8638240 Do not show 0 unread messages in action bar

Bug: 8639372 Unread count: Don't show anything for specific folder:
Outbox, ...

Bug: 8634247 Unread count flashes in ActionBar for other account

Bug: 8600557 Inbox not highlighted after switching accounts

Change-Id: I0831c2ad42659eb6f7209ee75d293d16951540e4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
28c89a900d4b39a37d90fd7b1788c9c01e2c82cf 18-Apr-2013 Vikram Aggarwal <viki@google.com> Merge commit '43be61f1' into noShow

Conflicts:
res/values-sw600dp/styles.xml
src/com/android/mail/ui/OnePaneController.java

Change-Id: I9d669b2230581b8dc0b2bc4fd52bd5f2415660b4
c5a041baacc1f3310d82c20b8108a242a8e8bb84 17-Apr-2013 Vikram Aggarwal <viki@google.com> Remove verbose logging

Bug: 8643644 Remove verbose logging

Change-Id: I1bd5083591e75a55b06322b105ea44ddf03a359a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
7e654a970f73e3ebfd6895caa5072c6dcc9e7fb5 11-Apr-2013 Rohan Shah <shahrk@google.com> Update drawer UI (Contact Photos, Baseline Align)

More UI Updates:
1) Updating the drawer UI to have contact photos next to
account names.
2) Changed the align by removing font padding from folder
item names for now.
3) Fixed Manage labels miscolored label header.
4) Changed Widget "Choose Folder" to Theme.Holo

Bug: 8617095 (UX)
Bug: 8599771 (Manage labels header)
Bug: 8600474 (Widget)
Change-Id: I6869ede915f65152587dd6051e1c4cfc571a1339
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
707fea8c1cd8523811fed1e156cbfe725f291116 17-Apr-2013 Scott Kennedy <skennedy@google.com> am 61c37797: Merge "Fix bad drawer items (folders and accounts)" into jb-mr2-dev

* commit '61c37797748d1fd4f591607b537405ab6b330f30':
Fix bad drawer items (folders and accounts)
61c37797748d1fd4f591607b537405ab6b330f30 17-Apr-2013 Scott Kennedy <skennedy@google.com> Merge "Fix bad drawer items (folders and accounts)" into jb-mr2-dev
87f93d446f983585151419e26e35debf979fa954 17-Apr-2013 Vikram Aggarwal <viki@google.com> am de60c9d0: Stop creating so many loaders

* commit 'de60c9d0ad164a5daf358181a05bbd43edd5d5ed':
Stop creating so many loaders
de60c9d0ad164a5daf358181a05bbd43edd5d5ed 10-Apr-2013 Vikram Aggarwal <viki@google.com> Stop creating so many loaders

1. Fix the check that caused duplicate loaders for the same account to
be spun up. This fixes the runaway loader issue.

2. Clean up the interface to folder watcher. Instead of asking for
URIs to watch, it accepts the entire array of accounts and
starts/stops watching on URIs as necessary.

3. Add documentation, clean up code a bit.

Bug: 8587151 FolderWatcher creates runaway Loaders

Change-Id: I063f8c21869f44ae780128013449d6462c07a9c8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
74455e151373d2b5437dd82b94348670e700ee1c 16-Apr-2013 Rohan Shah <shahrk@google.com> Fix bad drawer items (folders and accounts)

Ensure that the cursor updates after we change
accounts, to make sure there's no crashes when
switching. Also removes awful waiting for sync
flashing when switching accounts.

Bug: 8572004
Change-Id: I461f80853506f87cb1d395f9087a18e042427faf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
9a6f1dc9081a53c8b3780ad8729b133725494ddb 13-Apr-2013 Alice Yang <alice@google.com> Revert "Construct CursorAdapter earlier in FLF"

Bug 8607848

Change-Id: I97757a34f99cf95bda7b05367507845476b29a6b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
1c10bd807f5e492456727e92f8d0332e2b53d9af 13-Apr-2013 Vikram Aggarwal <viki@google.com> Construct CursorAdapter earlier in FLF

It can be moved all the way into onCreate(). Should remove one cause
of NPE.

Bug: 8607848 Construct CursorAdapter earlier in FLF
Change-Id: Ibb16765be3f7c3d11608e91c9b9c9f612543962d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b08282f236bffe3ab18367d406fb43265b35c262 12-Apr-2013 Vikram Aggarwal <viki@google.com> Ignore updates to a vanishing cursoradapter

Bug: 8605321 NPE in FolderWatcher.java
Change-Id: I2c30737c4a6c478e7ca01cbc9ac5cc2c4c70e133
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2811bf8f4e682e86267b11ba63ebf620001794a3 11-Apr-2013 Scott Kennedy <skennedy@google.com> Merge "UI Change for Drawer" into jb-mr2-dev
5e2f61b24ab7a3759856c12b82e7d6ac93df62a3 11-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Reduce refreshes to the drawer" into jb-mr2-dev
074a5a1c102176f2d370a568df48eea67bcaf02d 05-Apr-2013 Rohan Shah <shahrk@google.com> UI Change for Drawer

UI refresh for the drawer. Moving to a dark theme.
Note, the pictures for the accounts will be added
in a later CL. For the time being, there are gray
rectangles for where the pictures/tiles will belong.

Bug: 8594143
Change-Id: Iddd0a12ccbde70088beb386963a903141d9c345b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
21115dcf79619a8fd63378ba89c5944b1256a7ab 11-Apr-2013 Vikram Aggarwal <viki@google.com> Reduce refreshes to the drawer

notifyDataSetChanged() a lot less aggressively. This reduces the
number of times the drawer is updated on a single folder change (from
around five) to two.

Bug: 8558083 Gmail: Flickering after selecting any option from sliding
panel

Change-Id: Ie24ef81a904ad4921e240dc80c386d49af97ef8d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
cb7dd16f919e6d0a8cf4acf1b1d9e6554aa9b627 11-Apr-2013 Vikram Aggarwal <viki@google.com> Ignore updates to the current account in the drawer

When we get updates to the current account (with updated settings, for instance)
we don't want to restart any loaders. The loader should only be restarted
when the current account changes from null -> non-null or when it changes
from accountA -> accountB. In all other cases, we should change our
internal representation but do nothing else.

Oversight on my part, I should have noticed this before.

Bug: 8558083 Gmail: Flickering after selecting any option from sliding
panel

Change-Id: Ia5a256bae6deddbc6819b407161cf35720a87cd8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
eb54a6de498a8e9a7276eb59d975571726246de7 10-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Speculative fix + additional logging" into jb-mr2-dev
0c94d45845164aa7c39295da608f33be97099c50 10-Apr-2013 Vikram Aggarwal <viki@google.com> Always have the freshest cursor around

mFutureData was a performance improvement in the previous version. The
assumption was that the FolderListFragment was never going to be shown
with the ConversationListFragment on phones. This assumption is now
false. Removing this performance tweak. Will need to improve FLF
performance in a separate CL anyway.

Bug: 8578809 Continuous waiting for sync spinner spinning for Undo
archive or delete

Change-Id: I8ab6e4b2945d9c9626cfde2090189327fd7558d8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b3fa6f852ed6c7f72b90ad382882a0557783e711 09-Apr-2013 Vikram Aggarwal <viki@google.com> Speculative fix + additional logging

Speculative fix: Perhaps the mFutureData / mCursor interaction is
causing an incorrect account to be populated. Removing it from the
codepath since its effect is minimal now.

Additional logging in case the fix above doesn't help much.

Bug: 8437457 Mismatch of personal/corp account
Change-Id: I2b878c049eb899b46ddc5604baae42db1542d224
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d8b1a0c3568746e0ceab1a40a302d17def12a78f 05-Apr-2013 Rohan Shah <shahrk@google.com> Integrate recent accounts into drawer

Allow for accounts to be ordered by most recently
used at bottom working up to least recently used.

Bug: 8449354
Change-Id: I5d7903c3ba9a6d6be817bac2388a149a6d0d0d9d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
5fb0d88262b03863480b71b67c0a0d2088e7b660 06-Apr-2013 Vikram Aggarwal <viki@google.com> Listen to notifications on all accounts correctly

Change the all accounts object, and also redo the drawer list when the
list of accounts changes.

Bug: 8440677 Newly added account doesn't show up in drawer account
switcher

Change-Id: I41a4547980e58af7affdb3e4eac8c10f1b0ceabb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
47ffdc0184c5ceec79eac77025a450245904fe40 06-Apr-2013 Vikram Aggarwal <viki@google.com> Merge "Fix NPE in Drawer in mCursorAdapter" into jb-ub-mail-ur9
a208d1d801cf7cb501af989bdef3cb917b1b7a17 04-Apr-2013 Rohan Shah <shahrk@google.com> Display folders in specific order

Provider folders will now be split such that the
inboxes show followed by recents and the continued
with the rest of the provider/system folders.

According to Rich, we'll have system as part of the
"all labels" heading right below recents.

Bug: 8511658
Change-Id: I9bcbc1c7be36dd672fcda7bcf42217835be8ded6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2c1691fe26e5ea2583b473751fdee7598608171a 01-Apr-2013 Rohan Shah <shahrk@google.com> Fix NPE in Drawer in mCursorAdapter

CursorAdapter was null at the time of the call to
setCursor, which caused NPEs.

Also changed resetLoader to destroy and then init. The
loader was still receiving data after the activity
resumed and that cause the NPE.

Bug: 8500316
Change-Id: I1a6d2eecf6d64aaa446c7710bde7ed79a410f314
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
80b6aa924828c5c4b8bc4981efc9e1f2f3b86660 05-Apr-2013 Scott Kennedy <skennedy@google.com> Merge "Show up when waiting for initialization" into jb-ub-mail-ur9
1dd054f4e5581b69a52936c9d257fa91cb6daee7 01-Apr-2013 Rohan Shah <shahrk@google.com> Show up when waiting for initialization

The view mode changes were showing the incorrect state
for the up/home button. The button should now toggle
the drawer when in Waiting For Sync mode.

The change also makes it such that the FolderList will
(at least for the time being) toggle out the drawer.

Bug: 8528160
Bug: 8518608
Change-Id: Ia58e28892f44bda373fe346449a78f04a12a7f10
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
7b34ba1bd4c6e69f52758961619d172bf9bf4021 04-Apr-2013 Vikram Aggarwal <viki@google.com> Fix WTF

Turns out we can get touch events for items that are not enabled.
Log but don't crash for these cases.

Bug: 8544191 Log$TerribleFailure in Gmail

Change-Id: I334c3d50f331db678c99b6ba1d3a5b46d5d990da
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
6214ee405453b79f08859025fee5ed361d5499fe 03-Apr-2013 Andy Huang <ath@google.com> fragment transaction / back stack cleanup

Execute all fragment-replace transactions in 1-pane immediately.
This was contributing to b/8483995.

Don't use the back stack in secondary activities. Not necessary.
No material change to back-stack usage in 1-pane.

Add debugging info to key fragments/activities.

Change-Id: I1268cfbfaaca16b812b9e690facf912a1c9c4bc0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
23b528f182f14ef7ec1f1a4eb8d8ee9b8f04a2f2 29-Mar-2013 Vikram Aggarwal <viki@google.com> Load the drawer less frequently

The drawer should be brought up at application start-up and torn down
when the application goes away. It sets trivial extra state, and
gets all the state from controllers.

Change-Id: I63b39b1eadb9518a7070375f7b252afe9e90e157
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
564c969875af7d4c760fd791a97696e247a641c2 29-Mar-2013 Vikram Aggarwal <viki@google.com> Fix excluded types

We only need to exclude types only for top-level lists, not subsequent
hierarchical folders.

Bug: 8506090 Excluding folder types is currently broken

Change-Id: I1c18a9302c756c55f9e12ed33bfd8fe9820a7108
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b789b03fbedfb4fbaa0fb980725fbcd3e1d8d851 28-Mar-2013 Vikram Aggarwal <viki@google.com> Addressing comments from previous CL

Changing the variable name to indicate purpose.

Fixing indentation.

No functional change.

Change-Id: Ib9b0673a6ea1e62298336e0ef192cd162eeb1e47
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d8fa038aa7235468ecdcf2cda4e4d70eb97ba520 19-Mar-2013 Vikram Aggarwal <viki@google.com> Only store unread count in FolderWatcher

No consumer cares about full folder objects, so just store the unread
counts. Avoid Folder object creation.

Bug: 8424445 Folderwatcher is only interested in unread counts, just
read those

Change-Id: I139226319b1ce968d6bd49c69a25855e5f88f58f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
206ea7117c36748df756e4dafe50a3f488c01624 27-Mar-2013 Vikram Aggarwal <viki@google.com> Use ObjectCursor in drawer

1. Use ObjectCursor to force object creation off the UI thread.
2. Stop using goofy deficient folders.

Bug: 8484107 Remove deficient folders and user ObjectCursor in Drawer
Change-Id: Ib08c1abee572a761401a460167fe82f215dbdef4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
e9dcd245262567c1d294d36faa7f0f23973cb229 26-Mar-2013 Vikram Aggarwal <viki@google.com> Enable Hierarchical folder lists

This re-enables hierarchical by either getting the folder list URI at
construction time or as a list from the current account.

Bug: 8473060 Folder List Fragment for Hierarchical folders is busted
Change-Id: I5c8435b521f436f65bff83803c70684eb6d2dd40
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
9860f5ebcd77bce62f76ccf46cee939fe4f2858a 26-Mar-2013 Rohan Shah <shahrk@google.com> Remove MORE label references

Remove the more label entirely from FolderListFragment and DrawerItem.

Change-Id: I4f557764325f9065aa8c02bb10a88afbd93e53a4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
10f7cd3b693f40aec41dbba572e67ee6184b5a66 25-Mar-2013 Vikram Aggarwal <viki@google.com> Waiting for intitialization support in drawer.

When the account is still waiting for initialization, show the
accounts but not the folders.

Change-Id: I92a84ce06d56dc1a92dafae2b8ee251300213e1e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
8d98a84923930c18194cc63bf82fc283567db5b4 26-Mar-2013 Vikram Aggarwal <viki@google.com> Merge "Recents folder highlighted in drawer" into jb-ub-mail-ur9
2c17fb1cd5176be06b80b98467b75c67c8d6fa70 26-Mar-2013 Rohan Shah <shahrk@google.com> Recents folder highlighted in drawer

Recent labels, after being pressed, were not being highlighted
accordingly. Instead the label under "All labels" was being put
in the activated state. Added a flag to modify the behavior.

Bug: 8478680
Change-Id: I5801eb5a379ca31a9680839a1cd0a475771d8947
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f986f32c19f9394e8564b246655b58088f8760ad 26-Mar-2013 Vikram Aggarwal <viki@google.com> Clean the DrawerItem API

Change-Id: I3ac6534772f1a579c75d0ff40ca4d798c978f9b8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
c82a0322ef0c2eb35bf0ae8deb2e9292060ca946 25-Mar-2013 Vikram Aggarwal <viki@google.com> Reset the FLF arguments when the account changes.

Earlier we were creating a new FLF every time an account changes. We
aren't doing that anymore so we need to change the arguments when the
account changes.

Changes:

1. Decouple the folder list URI from fragment creation.

2. Instead, always read the folder list URI from the current account.

3. No point saving it or restoring it from bundles.

4. Implement AccountController in the FolderSelectionActivity to pass
the current account when creating widgets/shortcuts.

...and minor changes:

1. controller.loadFolderList() is only called from OnePane, so making
that private

2. Removing the folder list URI as an instance variable since that is
now unrelated to the creation of the account.

Bug: 8437457 Mismatch of personal/corp account
Change-Id: I81170ee80b5f9e064fd13edbc23981171740d814
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b958701ff6a98a7d95930e61d91104bb5db3299a 20-Mar-2013 Rohan Shah <shahrk@google.com> Add and separate Account Item View

Move account out of FolderItemView and simplify
some of the key functionality (removing params
and instance vars).

Fix the multi-select bug as well by disabling
state_activated for the account_item style.

Changed the header as well to make the style
different for currently selected account.

Bug: 8440682
Change-Id: I55c55e403bc64733b5924f95f423fd1097c4dc16
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
51a6df3f87fdc266811619432e9e9420e4530812 22-Mar-2013 Vikram Aggarwal <viki@google.com> Merge "Remove MORE items from Folder List" into jb-ub-mail-ur9
b33d70cd068c52aa921147e882030d2962865a16 22-Mar-2013 Rohan Shah <shahrk@google.com> Remove MORE items from Folder List

Both MORE items have been temporarily removed for
updated feedback regarding UX.

Bug: 8449121
Change-Id: If31e707bc2bcb0b43005e8d3f8b1f8914868da34
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/ui/FolderListFragment.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/FolderListFragment.java
d8c68c08dca0b45e7681a5756da73bced452c42d 19-Mar-2013 Vikram Aggarwal <viki@google.com> Remove Folder.newUnsafeInstance

Creating a Folder object just for populating three values is excessive.
Also, avoid creating and passing String objects when a simple integer
will be less convoluted.

Change-Id: I4b0a5ddd2da16310f5c7863dcb61d6d15d57aef4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
976b60a83728131cc2267442e080521473a4a674 19-Mar-2013 Rohan Shah <shahrk@google.com> Fixed NPE when entering from widget

Refactored some of the method and separated FolderWatcher
to avoid some potential null pointers.

Bug: 8422395
Bug: 8420568
Change-Id: I5aea32eb00242fb24c52ae620f2ec0c0ef1e8efd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
380929d02b329cafe8330903a01b862aafdd044d 19-Mar-2013 Paul Westbrook <pwestbro@google.com> Prevent NPE

If the FolderWatcher doesn't have an entry for the folder, don't
dereference a null folder

Bug: 8418504
Change-Id: I263246d5664c62d6d8328586861ec9277b12ddc3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
4a4de37596a8172c767749c361c1ebbba082d56f 18-Mar-2013 Rohan Shah <shahrk@google.com> Added unread counts to account in drawer

Accounts now have unread counts on the right in the
drawer, similar to folder item views.

I'll be refactoring account view into its own
class/xml at some point on 3/18 or 3/19.

Change-Id: I181dd7a9d8af37bcc6605163d90503cc615b432f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
6b641bab2b76995a717b183ac539267a6facdbf6 16-Mar-2013 Vikram Aggarwal <viki@google.com> Multiple accounts -> Show account name

Change-Id: I3ced41b403a6f216c316a9476cbb444e886a71ee
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
f88e408767feba2fd4974d0dddafebc3964cea03 15-Mar-2013 Alice Yang <alice@google.com> Merge "Remove collapsed headers for tablet only" into jb-ub-mail-ur9
8b353d3473421acc1ccade5d0c207c781a218ffd 15-Mar-2013 Rohan Shah <shahrk@google.com> Remove collapsed headers for tablet only

Take out "More" and "More accounts" when the
FolderListFragment is displayed on tablets thru
the two pane layout.

Change-Id: I4a4ee8a7572edd6b025dc82a490f3f3603d10beb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a03d7c132af07f772771a031dbdfa65735fdb920 15-Mar-2013 Scott Kennedy <skennedy@google.com> Merge "Add show more for accounts and folders in drawer" into jb-ub-mail-ur9
ad4c1856e25ab4edf796c220dd25afcbe823276a 15-Mar-2013 Rohan Shah <shahrk@google.com> Add show more for accounts and folders in drawer

Modifies folder list fragment to now include
"more" buttons when there are more labels than
a certain threshold. Also collapses accounts
if there are too many into a "more accounts"
block.

The more accounts implementation will have to
be changed to allow for most recently used,
inactive accounts to be placed at top.

Change-Id: Id048b672442f15eeb9916bb78fd509b2277d456c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
1799c1217cb69f1a769285839457d0c05b8a2316 14-Mar-2013 Vikram Aggarwal <viki@google.com> Move the FolderItem outside to a separate class.

This moves the item outside, and pries the dependencies a bit. Alos
selects the currently selected account, though not with the final
UX-approved visual treatment.

The FolderListAdapter is next to be refactored.

Change-Id: Ie6c4d5952c82ca847bbfa134906c7ecefc9d7d32
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
5fd8afd5c1b40580c069a5a97039ca0601208216 13-Mar-2013 Vikram Aggarwal <viki@google.com> Remove unused interface and rename method

changeAccount(account) is more indicative of its purpose than
onAccountChanged(account) which suggests that the account has
*already* been changed.

Change-Id: I7dd780e16b6a238814748bb429113dfe1069d9aa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
07dbaa6989ea5c63ecf79b5ce7ec3a6a18a1ff35 12-Mar-2013 Vikram Aggarwal <viki@google.com> Ugly first cut of putting accounts in the FLF

Things to be done which will be checked in soon:
1. Removing some of the ugliness around using a FolderItemView.
2. Reducing the amount of boilerplate when registering observers.
3. Pictures on the accounts?
4. Unread counts on the accounts.
5. Selected state on the account per UX spec.
6. Collapsing the existing list and expanding new list as per UX spec.

This is a known ugly solution to unblock the effort of others.

Change-Id: I8659232ce5508c9f766e5e8da69e21ad9ec24f32
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
61bd0e84a3b0545a722bbfe931233b47afdf52e2 11-Dec-2012 Scott Kennedy <skennedy@google.com> Preliminary sectioned inbox support

Add basic support for sectioned inbox. This does not include the
teaser view or other less important UI features.

Bug: 7685676
Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
3b8be4677e44fef9fc3b841ebcecbc10c541d35f 16-Nov-2012 Vikram Aggarwal <viki@google.com> Fix spacing

Change-Id: I1667c882417200e3a2595ff74db1345b2b771580
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
4ff2210d699da0d9be5ab4a295439d415a616157 16-Nov-2012 Vikram Aggarwal <viki@google.com> Unset the selected folder type when the URI changes.

In two-pane, we can also receive folder changes through recent folders
in conversation mode. In such cases, the URi changes abruptly, and we
must unset the selected folder type to highlight the corresponding
folder entry in the FLF.

Bug: 7308218 tapping recent label in conversation view on tablet does
not highlight that label in the converation list view

Change-Id: Ibacb543f985af0a8ea66801991ed81c162ad5290
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
1aecbb72739265d5f7c4926e553ad16c024a66b3 06-Nov-2012 Vikram Aggarwal <viki@google.com> Add checking to recover from unread count inconsistency

In general, keeping the current folder in the FLF entails storing it
for fragment life-cycle events, serializing and de-serializing it,
etc. This is undesirable for performance reasons. So we keep the
current folder only for the purpose of detecting unread count
inconsistency.

Bug: 7230012 JB MR1 tablet: unread count in LHS label list sometimes
inaccurate

Change-Id: I692e282037883137b1e9ee27ed7d93e731898783
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
eb7835ef58ac0fb22854360cc7d8aff106e45fde 09-Oct-2012 mindyp <mindyp@google.com> Dont assume there is a list controller

The folderlistfragment may also be being used by the widget
In this case, we don't care about animations

Fixes b/7316280 crash adding gmail widget

Change-Id: I76079fc038a0950d3ad958d8020744aaa292e1b2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
bdebcc3c4119b47e0148accb0000a34c68dfdf86 09-Oct-2012 mindyp <mindyp@google.com> null out folderlistfragment cursor when animating.

Part of b/7301434 gmail extremely janky on manta
this will have no effect on phones as we never show
the folderlistfragment is backed by the itemList so this
will just make sure we don't hold a ref to a closed cursor.

Change-Id: Idd8c77c4f215cfbf400af9cf981de4effe33b4c9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
6f54e1b0e8beae2e624852f9f2f2b1b38745e3be 09-Oct-2012 mindyp <mindyp@google.com> Defer folderlistfragment updates while we are animating.

Part of b/7301434 gmail extremely janky on manta

this will have no effect on phones as we never show
folderlistfragment at the same time as convlistfragment,
so we can never be animating!
this will also never trigger unless the user causes an explicit
delete of an item, since only that triggers animations.

Change-Id: I27cf0542897e364212ea687e2eef9a424a2090a5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a412895c05017cf46df21ebb0dad1632de07d9d7 08-Oct-2012 mindyp <mindyp@google.com> There are no recent items in the account switch dropdown on tablet in convlist.

Cut getView for the spinner adapter from 14ms to 3ms
Cut the call to AccountSpinnerAdapter.onChaged from 200ms to <1ms for tablet
when first switching to a new account
Since we already have full folder obj's for recents, just use the full
folder obj instead of recreating one from the cursor
Part of b/7301434 gmail extremely janky on manta

Change-Id: I2d07958ba0308e00655c5a37eb6eff4fbe74501c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
4e0e65423fd242bf04537c1710bcf0c4c5a6e8e8 08-Oct-2012 mindyp <mindyp@google.com> Populate the minimum fields for a folder.

The others are a waste for the folder list fragment.
Make it possible to create a full folder object from the
cursor associated with the folderlistfragment when necessary.
Part of b/7301434 (*) gmail extremely janky on manta

Change-Id: I5dbd5b34a4708d882b7ea2bfd6e7675b1350d6ff
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
fa50e6f9f3ab9105d7a3f67e2be85f5a1fea9d85 03-Oct-2012 Scott Kennedy <skennedy@google.com> Allow excluding folder types from folder list

Allows a list of numeric folder types to be passed into
FolderListFragment to exclude them from being displayed under
certain circumstances.

Bug: 6950035
Change-Id: I0d8cdadf3a3572bff22511d748ce765eeb70560b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
25a1d4b218226827f4827c19cde9b7c0ab4b3d81 23-Sep-2012 Vikram Aggarwal <viki@google.com> FLF: Select the initial folder type

When the app comes up for the first time, it does not have a selected
folder type. This is set on subsequent taps. Ensure that if there is
no folder type, we always set a type when setting the selected folder.

Bug: 7215461 JB MR1 tablet: inbox not highlighted when launching app
with no saved state

Change-Id: I6044132792fa1a97a4e5555ab64f5a9779a64ff3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
b65d12f5a848017fa19484eb281dc7ed2aa52a93 22-Sep-2012 Vikram Aggarwal <viki@google.com> Carets, not Elipses for parent folders.

Use a caret in the South-East corner of the item, not elipses.

Fix Bug: 7212509 What does "..." mean after the name of a folder (in
an IMAP or EAS account)? Change-Id:

Ib7b5b5d75058beccf2f7ca68006b84de126ea2b3

Change-Id: Ied96f73e2093ba07682b735cc2755b90bb9ea0f1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
7ebc9fbf2c794f6d0cda0e22bbbe229b2b6768a7 17-Sep-2012 Vikram Aggarwal <viki@google.com> Controller can be null when creating widgets

In such cases, we don't want to select a folder anyway.

Fixes b/7173849 Gmail crash on choosing an account from the widget -
can't add gmail lockscreen widget.

Change-Id: I55f90ab3631d5d08ab997e5a896052861b9d643f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
4166dee04af54bb0abd7b3761fd8ded711297073 14-Sep-2012 Vikram Aggarwal <viki@google.com> FLF gets selectedFolder from controller.

Also, save the selected folder type in a bundle and always set it when
the fragment is created.

This avoids a host of problems with the existence of FLF from the
controller.

Fixes b/7170094 Folder not highlighted when launching from
notification/widget

Change-Id: I944851f168733aefd1c71991dff7b55b39bdf1a5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
e716c856d59cc6741e9d9fa16a77bbccd12530ab 14-Sep-2012 Vikram Aggarwal <viki@google.com> Add caret to parent folders

Fixes one issue in b/7136651 In folders list, top-level folders with
children don't show the .. affordance

Change-Id: Ic99a61f5eb60a555a3a904c2e1fefc7438022080
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
e8cea155f6b43919e58a002a502a5d3bd6817e8e 10-Sep-2012 mindyp <mindyp@google.com> Make sure we dont have a null folder.

Are there items besides header that have a null folder?
Fixes b/7119709 NPE in Gmail at com.android.mail.ui.FolderListFragment.viewFolder(FolderListFragment.java:281)

Change-Id: I9732b9e81d1df98ff38fc86a1eaae64df7e86ee9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
00f237c7c51b948891b543f793394dc82c113bcc 04-Sep-2012 Vikram Aggarwal <viki@google.com> Do not return prematurely

Change-Id: I243b6260c19753870db38c0ebab95d04883407c3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2c0032dd2a4996680ab6e1958fe80a2ebcd01ef3 04-Sep-2012 Vikram Aggarwal <viki@google.com> Use sectioned lists only on two pane.

Fixes b/7102332 Creating a widget crashes in FolderListFragment

Change-Id: I66616725d954a4e9e28f237fb1f52ce82d488afa
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
508eafe20684cea54faf2ccf98a294d51a568e51 31-Aug-2012 Vikram Aggarwal <viki@google.com> Single selection in FolderListFragment

Remember the section in which the last tap was made. When
highlighting folders, only highlight the folder in the correct section.

Fixes b/7091983 Folder List Fragment highlights two labels

Change-Id: I45a0da195109e8fcf77215d5698b16c6cce13a5c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
58cad2eea744d41a11c0124e91308e38108d242e 29-Aug-2012 Vikram Aggarwal <viki@google.com> Folder list fragment by sections.

Known issue: the recent folder *and* the user folder is highlighted
when selecting a recent folder. A change is being prepared to fix
this.

Fix b/7074104

Change-Id: I82733bc6be105c6270d17f3c1a281fd4ec15a48a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
56c65a551ba97024ebcd4ed1c7553d81a8526535 29-Aug-2012 mindyp <mindyp@google.com> Set the folder and then add it to the hierarchy list

Change-Id: Iffbc5de15ba76e9c31836b25cf9be3b0dd0dc220
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
6bb7310b08af907794c24dfec0bd7212cb5c23a0 27-Aug-2012 mindyp <mindyp@google.com> Prevent crash

Widget doesn't have / need a folder controller.

Fixes b/7060775 Crash while adding Email/ Gmail widget

Change-Id: Id806abc0cdfcfaf16587feec15928f9c8b8ba679
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
7df4d6585d3597d49bce8b81aa2a5b0683e81694 24-Aug-2012 Vikram Aggarwal <viki@google.com> FLF listens to folder changes

This allows blue highlighting when selecting folders through other
means: recent labels/notifications/widgets.

Fix b/6879926

Change-Id: I46ca8f9c1e4ecae429454ed1f3a469f578e64f75
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.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/FolderListFragment.java
166ba5a5343ad8ccdb8d565ebd1c22c277427dc7 28-Jul-2012 Vikram Aggarwal <viki@google.com> Cleanup. No functional change

Change-Id: Ibf5265bb0e8c589e63db147cc6399424d83f0305
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a1f99981919755e50f31fe300517d2fed752997e 17-Jul-2012 Mindy Pereira <mindyp@google.com> Click a parent folder should open that folder.

Change-Id: I28b40d16fa0e639a124b7372bdc9a35dc8a754a4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d67026a905d98ab000d5bbf12336240e09c738c1 16-Jul-2012 Mindy Pereira <mindyp@google.com> The parent folder was getting cleared out!

When clear was called when setting the cursor, the parent
was not added to the adapter.

Change-Id: I8fa3cdaf75ad93225cec3860f9f85fdb9d98f9e9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
c975e8416b64a1ebdec6adee7e65dd1d0928e8d4 16-Jul-2012 Mindy Pereira <mindyp@google.com> Re-connect to an existing loader on orientation changed.

That way, we can keep the existing conversationcursor over orienation changes
and retain the undo state.
Find another way to make sure there is no selected item when we open the
folder list. Setting the folder to null means we don't know that
we are switching folders later.
Change-Id: I720f2a1fc1dba6e9e25ac0512894273f758499d5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
ec03ce0f6a3ff209cf1b2274d92cd4fa6a59eca3 02-Jul-2012 Mindy Pereira <mindyp@google.com> Show better message when waiting to sync folders for just added acct.

Fixes b/6021730 Creating a widget right after the account doesn't display a useful screen for labels

Change-Id: I85b7b1341fbef53a93e4a38410ac0e3fb77cc088
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a716ddb162e23aab7c202460e5a475db97a71a8d 27-Jun-2012 Mindy Pereira <mindyp@google.com> Show the icon in the correct place.

It was being put in the colorblock, leading to a weirdly sized fuzzy thing.

Change-Id: I5abb277372d9951813d8eca31de461cb8f8371a4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
39dddf43d08af6ae7d6bb5a27a7058d5ceb9c73f 26-Jun-2012 Paul Westbrook <pwestbro@google.com> Allow the Folder list state to be persisted

This will allow the scroll position of the list to be restored,
and not be reset when new results are received.

Bug: 6601211
Change-Id: Ibd4fae72481d8b488e798b050e2123701de82b6a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
505df5f59c92adbe8eaa734321c1d3f91be84a4a 20-Jun-2012 Mindy Pereira <mindyp@google.com> Fixup multi level hierarchies

Fixes several issues:
1) now properly shows parent icon at all levels
2) now properly hides parent icon at all levels (recycling views
means we have to show/hide each time!)
3) moving up/ down the hierarchy works properly

open issue:
going back from a folder with children to its parent
does not select the child folder in its parent view

Change-Id: I46995ee636ac199a3d600eea0b5f37bd3bf624ff
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
11e3596e8c5978d07195ae2d7c8a96bb51aa75b3 01-Jun-2012 Mindy Pereira <mindyp@google.com> Handle up and back behavior for the one pane/ two pane folder lists.

Adding hierarchies makes this more complex.

Change-Id: I6f4946c351c53dbfda880780fe804d8e57c4a494
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
13c12a628bd4f1e52b9a4fc44a18b85bfdaeb88b 01-Jun-2012 Mindy Pereira <mindyp@google.com> Update hierarchical folders; implement this "the right way"

Have 2 list adapters that understand when to setup a hierarchy
and when to not

Change-Id: I98b349ac373689c091bd8227a975bc47ae3f5092
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
23aadfd1c83e08b6723d4cb9357b2908cc464a86 25-May-2012 Mindy Pereira <mindyp@google.com> set folder selection on activity attached

since attaching a fragment to the activity is async, we may not
have the fragment by the time the folder is selected
let the folderlistfragment set the selection once the activity is attached

Change-Id: I10aad32af1982a4b349492fd449c42a58c37bc4f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.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/FolderListFragment.java
a76e5aeff4a54ec70661de35be4f3ecb9d1d2fe2 29-Mar-2012 Mindy Pereira <mindyp@google.com> Add no args constructor for FolderListFragment.

Fixes b/6251677 FolderListFragment needs a public no-args constructor

Change-Id: I1f87b5ed105a3b2598da5507eedb0f439aad087c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
56e3f50f5aee6606035eae4b713ef634c4f3a686 28-Mar-2012 Mindy Pereira <mindyp@google.com> The parent folder should be shown at the top of the list of child folders.

Fixes hierarchical folders to allow the user to dive into the parent
folder as well as the child folders from folder list.

Change-Id: Ia75275b1941797be8e8c9e10ba8887ca8e5dcd71
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d449f883a243849b02c8d29ccb3439b9834aef6b 28-Mar-2012 Mindy Pereira <mindyp@google.com> Make it possible to choose a child folder as the folder for an email widget.

Change-Id: Iedb925db18972234109ab1cdb250b471842701b9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
a5d2e95bdbf26d296accca7e5013be87213de5a6 26-Mar-2012 Mindy Pereira <mindyp@google.com> Make sure this is a content_pane before updating it.

In the case of the email widget, there is no content_pane
but there are child folders.
Have filed a task to make it possible to make a widget for child
folders.

Change-Id: Ic45a542df5783103eab64a1bf9e60d7e473115b1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
21784c86a443e81de632b4a46f5db4c2e901fabb 15-Mar-2012 Mindy Pereira <mindyp@google.com> Only maintain visibly checked state of folder list items on tablet.

Change-Id: I2812e727d4ea37641e2ef0cd332e3efc7805eac8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
7e5de7a9825120dcc6c94230ec5cd61b178fedf2 13-Mar-2012 Mindy Pereira <mindyp@google.com> Get rid of second id for folders.

Use the uri to compare two folders.

Change-Id: I95c63190ec3a467b0b792f8c8104b6a69fa4b8c7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.java
a5603f3b3fe76c6527f45e81445cb93f92309d77 09-Mar-2012 Mindy Pereira <mindyp@google.com> Show folder color (if it exists) in the folder items.

Change-Id: I437d800af98a1be6bf1e56746f70f9fb77a16ca3
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
d2ca51ac0c0727ae924259918ac6f25b3f8ce571 05-Mar-2012 Mindy Pereira <mindyp@google.com> Small cleanup.

Check for null before comparing folder, before looking at conv list
context.

Change-Id: I254bda02cb4fdbc2878ff132b82feab13bb05647
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.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/FolderListFragment.java
cfb7f33ff8ef9dc60b9143af32de64c7a3d71f36 28-Feb-2012 Mindy Pereira <mindyp@google.com> Store URI's in Uri instead of String.

Change-Id: I5492a61b80442afc7cebc5b3d560688aebae8820
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
8a8c50d8fcc4f20549c9f395edbad017a940e72b 23-Feb-2012 Mindy Pereira <mindyp@google.com> Move over resources and files for the widget.

This renames/ moves over styles and drawables for the widget
as well as xml files and classes.

Doesn't do much right now except display a unified email
widget in the widgets selection area and then say "app not
installed" when you drop it. But its a start!
Change-Id: Ie2759ce0adf520bd65222b50ddc8ab14c6659a37
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
28e0c34ad35925fc74633bec66344911f2de6a22 18-Feb-2012 Mindy Pereira <mindyp@google.com> Hookup refresh button.

Change-Id: I79be2fb42ed6902129b65f56b4ef70de5d4c1d90
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
2175d0a93263672d4498458c81b404b0999134ba 18-Feb-2012 Vikram Aggarwal <viki@google.com> Start tying in fragments to Viewmode changes

Change-Id: I09eaeb0c338ab3205e0887a99b9684b4ac0549ca
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
465d03d2318a4d764044c257f8f77d21e04531f0 17-Feb-2012 Mindy Pereira <mindyp@google.com> Show a special collapsed asset icon when a folder has children; use CursorLoader

Remove unneeded UIProviderCursorLoader
Change-Id: Id0671479de98c23242018ef1e576dd803e16395c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.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/FolderListFragment.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/FolderListFragment.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/FolderListFragment.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/FolderListFragment.java
b7d071b08e221529fbda6c16162fe1640a9fbf16 15-Feb-2012 Mindy Pereira <mindyp@google.com> Use replace when moving into a folder hierarchy instead of add.

Change-Id: I43b9704959c2fa43c4e4baef490b15377226548f
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java
28d5f72e0ad0db75b6243ee8125bfe3aadbdcb85 15-Feb-2012 Mindy Pereira <mindyp@google.com> Make a folder list fragment. Hook into Viki's app.

Also, hook up listeners for changing account in the
account spinner dropdown.
Change-Id: I0e6bbabc525c141fa581f49e6265c26bc767b8cf
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderListFragment.java