History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
deee5bee475a678bc2a4efe81c2900b1e5ac54dc 30-Sep-2014 James Lemieux <jplemieux@google.com> Display sync errors using snackbar and not as a TL footer

b/16463253

The FAB compose button overlaps the action button found in the TL footer
when network errors occur during sync. To avoid this overlap, the snackbar
is used to display these errors and they no longer appear as a TL footer.

In order to signal the sync error to AAC for display in the snackbar, the
Folder.lastSyncResult needed to be encoded in the manner that AAC reads.
This was not happening for POP/IMAP/Exchange accounts, so a large portion
of this change is encoding that value properly every place it is written.

To ensure the value is read/written properly everywhere, common methods were
introduced in UIProvider that do this work. UIProviderTest was also added
to ensure the read/write methods agree with each other.

Finally, the display of the "Load More" TL footer was updated to match the
latest spec.

Change-Id: Ia44f4ca1caa77c5d76f58d75fa4ab308442d2a72
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
ec0fa48764bede0772e9c711f3e33361b62f3608 29-Aug-2014 Jin Cao <jinyan@google.com> Keyboard support for focused state

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

b/17258708

Change-Id: Ic9739c9b349403942f64fafa26500c08d1f1cc4c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
405a344937675f57fc9c6988b2b124410a270f13 25-Aug-2014 Jin Cao <jinyan@google.com> Remove some unnecessary interface

Remove unused interface for ActivityController and
ControllableActivity.

b/17258810

Change-Id: I8edbff09b1a5a3278efad8675e3fc3f71e82d2e4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
c6801eb828627c37b8992584767c095dfe11df62 13-Aug-2014 Jin Cao <jinyan@google.com> Quantum search - version 1

I apologize in advance for this huge CL.

- New icons (yay!)

- Abandon framework search and handle in-app search
functionality ourselves. This is made possible because
we use Toolbar and can position any custom view on top.

- Remove all previous search related attributes, including
search providers, searchable, search authority, default
search menu item layout, etc.

- Cleaned up the recent history provider to contain only
the functionalities we need - query, add, and delete.
Instead of using the framework to add recent queries,
we directly insert into our database. Since the provider
no longer needs to extend ContentProvider, removed
some unnecessary callbacks such as onCreate.

- Custom quantum search views:
- Top search bar, this is inserted in a FrameLayout
on top of Toolbar. The search bar interacts with
the suggestion list and AbstractActivityController
via the QuantumSearchViewController interface.
- Suggestions list, this is inserted in the FrameLayout
that typically contains the main content pane for
either one-pane or two-pane layouts. Again, this
interacts with the action bar via the controller.
- Voice search, this is simply an implicit intent
that converts speech to text.

b/16518233

Change-Id: I589c40e6c6e3d8c719856b735d0c53e8db986e65
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
0b69338a45faa422ccba8faf64c9816c55d33e4a 11-Aug-2014 Jin Cao <jinyan@google.com> [KBNav] two-pane landscape navigation polish

The system default navigation doesn't work quite as well
in landscape mode (e.g. focus on conversation view's reply,
hitting up goes to the mini-drawer instead of the message
header). This is partly because our overlay views are not
in a real list, thus we can't take advantage of the framework's
navigation support for listviews.

I decided to roll my own navigation entirely for
conversation view and manually focus/scroll.

This CL also includes some polishes for interactions in landscape
mode between drawer, TL, and CV panes.

b/16636060

Change-Id: Id1de01439a118702756d52f6a8b3f02395a0f932
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
52882ff08fe9420fe2dbb3f681545a330222e9c8 27-Jul-2014 Andrew Sapperstein <asapperstein@google.com> switch to appcompat. b/16664350

Currently only for MailActivity, ComposeActivity,
and FolderSelectionActivity.

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

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

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

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

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

Change-Id: Ic6f5964f4115ab4bde49c19df5fe49c9086df965
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
53de448d6c67e56df4e3bcefb3e2d84c810e2e89 29-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Revert "Revert "Megadrawer" until b/16637856 is fixed."

Want this to be ready when the bug is fixed.

This reverts commit c53c887101aa90b5024af635823023aa801e075f.

Change-Id: Ice73a0f48cbe1e949fde3db3719ee86995778ebb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
c53c887101aa90b5024af635823023aa801e075f 29-Jul-2014 Andrew Sapperstein <asapperstein@google.com> Revert "Megadrawer" until b/16637856 is fixed.

This reverts commit d4bb2af4a545493b88e900be5262329c715dd38a.

Change-Id: I3c8860d30cde8b70c135c2ef457f5f601b45b8b5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
d4bb2af4a545493b88e900be5262329c715dd38a 28-Jul-2014 Tony Mantler <nicoya@google.com> Megadrawer

b/16458862

Change-Id: I476ee21209e8108fc77e3d265326347a53f13ef5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
2f7a1c0f4ad2f9744ce3438ef36fed9d9a4fcb91 01-Jul-2014 Milos Stankovic <miloss@google.com> Refactoring Welcome tour activity.

This is mostly cleanup in UnifiedMail. Most of the changes are in UnifiedEmail.

b/15705426

Change-Id: Ifb1980d4e3e77f2dc7c9f70339552e49cf500033
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
62e1496cb42c21b5348ebe795cd2fabd7574d3e1 23-Jun-2014 Régis Décamps <regisd@google.com> Refactor how the warm welcome is triggered.

- The welcome tour is an independent activity. AbstractActivityController doesn't need a specific ViewMode (this should also fix b/15747390) and doesn't implement WelcomeTourCompletionListener anymore.
- MailActivity returns the warm welcome loader callback.
- The MailActivityEmail, FolderSelectionActivity don't implement onWelcomeTourRequested anymore.
- ControllableActivty implements WelcomeTourListener.
- OnePaneController and TwoPaneController transition to the inbox as they used to.
- WelcomeTourListener renamed onWelcomeTourComplete to onWelcomeTourFinished and returns a status (completed, discarded, or not shown).

b/15705426

Change-Id: I9af1f7c2ee5a5819d5df2d860547a2668f1d5cf6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
ede2e52e725abc625ae963f979639ff8ecc40cf5 30-May-2014 Greg Bullock <gregbullock@google.com> Changes to support displaying a welcome tour.

Change-Id: Ice10fd8d629a9f4aebe5cfb7cb94bc1eb5ebaaeb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
10ea28ab588d8e922c0f78f0f47fe479739ec2cf 27-Mar-2014 James Lemieux <jplemieux@google.com> Show "To:<Names>" in sent and outbox index views

b/13304929

The solution being delivered introduces a new folder capability:
UIProvider.FolderCapabilities.SHOW_RECIPIENTS which indicates a folder
should display "To: " in front of its participants list because it
is a folder containing outgoing mail or sent mail (thus viewing
recipients is more useful than senders). This capability is returned
for Drafts, Sent, and Outbox.

Note that extra work was required to make this function properly in
the widget we export to the launcher. See BaseWidgetProvider and
friends for details.

Change-Id: I2fa2394224ef3911992ab8d5cb67b05fdf5f3e85
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
f4fda679136f3aaeb8a690246210a42508d4cbc8 30-Oct-2013 Tony Mantler <nicoya@google.com> Make folders with subfolders selectable when creating widgets

b/10847899

Change-Id: Ie30cadf31747431f1c5b998b3d32e109c1a6c6b9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
a7bf14bf58dbb0d586607cdbd7f5ac4c30a48361 10-Oct-2013 Tony Mantler <nicoya@google.com> Add comment for obsolete resource usage

b/11155414

Change-Id: Ia1748bef097e39954701e3b76ca80a5bc9e897d7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
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/FolderSelectionActivity.java
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/FolderSelectionActivity.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/FolderSelectionActivity.java
6c570db71b8adc43d7dc2f31e6fa63cf50c1426e 07-Aug-2013 Andrew Sapperstein <asapperstein@google.com> Add new ViewMode.

Works in OnePaneController.
Need to wire up the buttons.

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

I really want to get this building in an IDE.

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

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

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

Change-Id: Ie699c13e1becd51c59c1b2ea81bc902d4f2e28d9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
103319aaed26bce257de55b2fe93d4f78d3c59b9 26-Jul-2013 Scott Kennedy <skennedy@google.com> Ads in conversation list

Change-Id: I3095409211d6a6bdc42212bcd6a330333a9da411
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
479505d71969e26b0785d8e0e1b81108731cf827 21-Mar-2013 Mark Wei <markwei@google.com> Attachments in Conversation List: Backend changes so that the appropriate
attachments are passed to the UI. Implement PhotoManager so we can start showing
images.

Upon sync, we extract two image attachments from the first unread message, and
add them to the conversations table.

UI changes as well.

Load BEST if that is available, else load SIMPLE.
No vertical dividers in attachment previews.
Attachment previews are above labels.
Round badge appears for unread conversations when there are more images than
shown. Only appears after the previews have loaded.
Clicking on the attachment previews launches photoviewer.
Attempt to load bigger images than necessary to prevent reloading during mark
read/unread and rotate.
Show animated loading icon while previews are loading.
Previews load from top to bottom, from left to right.

Big performance improvements:
No longer decoding bitmap on UI thread. This kills most of the jank.
Only load when we are not scrolling. This kills a lot of jank.
Remaining jank will be delt with later:
DividedImageCanvas.setDimensions() creates a huge empty bitmap on the UI
thread, which causes a GC. ath will fix.

Multiple images in one line now load whatever's ready first. Added tracing.
Bitmap cache given more memory.
Following ath's advice, decode Bitmap from InputStream rather than byte[]. Don't
compress into BitmapHolder. Only use the bigger Bitmap cache.

Bug: 7481049
Change-Id: Icf823f56abc9345e6d0b800a1e6d45444d8fa028
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
b184bfe96fa3512af88260fce4f3cee3066fb28d 26-May-2013 Scott Kennedy <skennedy@google.com> Unify LogTag

There is now only one LogTag class. The static initializer of
GmailApplication (existing) and EmailApplication (new) will now set
the log tag to "Gmail" and "Email", respectively. Up until that code
is run, it will be "UnifiedEmail".

"setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to
be printed as long as they go through LogUtils, regardless of what tag
is used by that individual log. This lets us still turn on logging
everywhere in one command, but also lets us use more descriptive tags
(like the class name).

And since we no longer have three com.android.mail.utils.LogTag
classes, builds will be much easier.

Also, we now use LogUtils everywhere.

Change-Id: Iec53e87cad0a46b73d2afbbd8d44aca097a5087a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
30b17e3a157dcfd65cf51ebb788283efa79df268 08-Apr-2013 Vikram Aggarwal <viki@google.com> Remove the subject from the actionbar

Following the new UX guidelines: no subject in actionbar anymore.

Bug: 8438223 Subject of the mail disappears from the action bar on
orientation change to landscape mode

Bug: 8492928 Action bar title switches between subject and the
folder+account name

Bug: 8529168 Remove search_actionbar_view

Change-Id: I8551fdacd7843ca0b2ba0bf1025483eee2587638
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
2ab0eba1dd15564bd1e88df87fe88fe96c1cb822 26-Mar-2013 Vikram Aggarwal <viki@google.com> Fix build

Change-Id: I2c2e7beec37610240900c66fed56dd58efe8d170
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
67aa9e5162a15fb8b46b4113ac627cd20668f095 20-Mar-2013 Scott Kennedy <skennedy@google.com> Exclude all inbox labels when we're viewing an inbox

Bug: 8426563
Change-Id: Ib9256fcdb658cb3df9b67485f7768f75bb8b6539
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
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/FolderSelectionActivity.java
b39aaf53a555c1046ef31b3fecf15d086acca013 07-Mar-2013 Scott Kennedy <skennedy@google.com> Make widgets work again

We can't send Folder parcelables to RemoteViews, so let's just send
what we need: two URIs and a String.

Bug: 8330949
Change-Id: I67bf7668d5eeef3f3b2e6225cf8697a4c5533f16
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
09400efa442422299acf21abe20e3470f9d965ab 07-Mar-2013 Scott Kennedy <skennedy@google.com> Add a version code to all Intent URIs used by notifications

Because the Parcel format changed for Folder, and PendingIntents get
reused, the unparcelling would crash after an upgrade of the app,
until the device is rebooted.

By appending ?appVersion=123 to the URI, we can ensure none of these
are reused by a different version of the app.

Bug: 8324950
Change-Id: Ic616f2d57aa5ef5276bf44f9b9d05bbe44c2c011
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
313ac13095a386be366bd25f8106fbb34b4a7098 05-Mar-2013 Andy Huang <ath@google.com> fix search hard key handling

onSearchRequested(String) -> executeSearch(String)
No sense getting this confused with the very-different
Activity.onSearchRequested().

Bug: 8309831
Change-Id: I20dfaa854d6dfb1b8a774337ae2ae1b0db17abce
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
c1fb9a9c2730178105977fca629e80951bfc3cdc 11-Feb-2013 Andy Huang <ath@google.com> Single-message zoom using a floating WebView

Protected by an experimental pref for now
Restores scroll position
Preserves 'show pics' state
Speedy animation
Fade-in animation begins right after onNewPicture (ICS compatible!)
add UpOrBackController role for fragments to get a whack at back/up

And because this approach avoids using the CSS 'zoom' attribute
within single-message mode, double-tap works well and there are no
line-height issues.

Bug: 7400516
Change-Id: Idedfa6e35edc291c9169fbd9b1315b39b4253f60
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
ca87de41285bde382a894b6cb2d13c112c5d7a2f 29-Sep-2012 mindyp <mindyp@google.com> only get content description when accessibility is enabled.

Getting the date is the most expensive part of the bind operation
takes ConversationItemView.bind from ~5ms to .5ms
bind is called whenever we get a list item view, so its important that its FAST

Part of b/7188066 Gmail inbox list fling is jankier comparing to previous release

Change-Id: If789382df6429f61ac80c4be08611c5391da5618
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
9d3fd92ed6091dbd0d38799222a1cf841f1c3f29 27-Sep-2012 Andy Huang <ath@google.com> Wait for visible conversation to load before loading others

add conversation load observation APIs to CLC interface
save/restore CVF user-visible flag
move CVF state restore to ACVF's onCreate
start using FragmentRunnable to avoid doing work too early
(before ViewPager settles)
clean up unused onConversationLoadError codepath

fixes undefined conversation load order on rotate
improves conversation load speed a (tiny) bit

Bug: 6268986
Change-Id: I4670d0c04cb1a36d5aa2c5355e2a79de17d042dd
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
723ca34b4f74191a014055194dceb1a12a8127c5 18-Sep-2012 Vikram Aggarwal <viki@google.com> Feature neutral code cleanup

In preparation for fixing b/7185158: Change Labels list has built in
labels listed las

Change-Id: I17bea019c5406ac7e97f54e13295bda968814569
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
3bcf180f8104bc27319086a9a6ece5a3c2917c37 09-Sep-2012 mindyp <mindyp@google.com> Add loading animations to conversation view

fixes b/6272925 jank - conversation loading isn't animated
fixes b/7131797 Blank scren shown for live conversation, when in airplane mode
Note: need to do a next cl that puts off showing the spinner
until at least XXX ms have passed
Also, we cant use the software layer for rendering like we did
in gmail1
it looks like there is a skia crash that triggers when we try
to use software / switch to hardware rendering for the browser
need to investigate that more

Change-Id: I96a30b700c3e88d52e603fe2f11b44d113e013d2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
3825f3d2284b2b57fadcfe6a4ebd9992f3c5c7bb 30-Aug-2012 Andy Huang <ath@google.com> fix spurious stopListening on the pager when loading from widget

When loading from a VIEW intent, the pager was sometimes
disconnected from its data source before the data was loaded,
which caused it to stay in singleton mode forever.

The original code to disconnect the pager was intended to
disable pager updates when jumping back from conversation mode
in 2-pane (via account spinner), so move that call to the
beginning of 2-pane's mode change animation.

Also do a bit of misc API cleanup.

Bug: 7076780
Change-Id: I508b59816f4f537276aa103b9dcae51972389eb0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
5390fcabb7baf683fc14bd68d8612913dac70a81 22-Aug-2012 mindyp <mindyp@google.com> Restore drag/drop logic

fixes b/7034633 Drag functionality is missing on tablets

Change-Id: I8d0c9d4a95cf143a307fb093721f3b5f6eba872c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
ca9b3f6c4a6611ccf89016f63ecf672f2f008820 16-Aug-2012 Vikram Aggarwal <viki@google.com> Correct the list visibility in Two-Pane mode.

Fixes the following problems:

1. R.bool.list_collapsed is only meaningful in conversation mode,
while previously it was used even in conversation list mode
(b/6980648)

2. Dispatching conversation list visibility should happen when
entering conversation mode.

3. Change the list visibility before changing the layout to ensure
correct measurements.

4. Dispatching conversation list visibility change can be safely done
on the UI thread.

5. Consistent variable naming, and removing dead code.

Change-Id: Ic910b7adc7bdb1b599a7e650239d580d36c3478b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
cff1aeaff92efb9f7a03203d9f757a2820b87686 10-Aug-2012 Paul Westbrook <pwestbro@google.com> Refresh cursor even when scrolling

This allows the "Loading..." item to appear before the
user stops scrolling the list. If the the live data is
populated before the user hits the end of the list the user will
not see the "Loading..." item

Bug: 6966755

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

Change-Id: I0f8c41eedab1c570b337bcc93e3c0599507ece7e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
96a7f7aa2de33b1722009a9ee77d2b7b18a8e3e9 10-Jul-2012 Mindy Pereira <mindyp@google.com> In reference to message

fixes b/6292922 "Reply by gmail / Forward" options in Gtalk search doesn't populate the data for To:, From:, subject & quoted text
Change-Id: If453783f56ebffad02630ba8d949ed1bbbf43532
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
5895f7b0e5fa921f6d46bbaf6d8c7b1a8ebc7804 02-Jun-2012 Andy Huang <ath@google.com> subject in actionbar

Mostly a port of Gmail1 code. New and noteworthy:
* when switching between ActionBar list nav vs. custom display,
toggle ActionBar.DISPLAY_SHOW_CUSTOM rather than messing with
custom view visibility
* This exposes something of a framework bug where collapsing
an action view will leave views for all inactive navigation
modes GONE, which I work around for now (b/6664203).
* ActionBar views were being inflated with system default Holo
theme due to application vs. ActionBar context (wrong theme on
the application context). Fixed that and un-inverted some
existing styles.
* SnippetTextView: save off the last measurespec rather than
inventing one as before.
* bring back an existing excellent behavior: since
PagerAdapter.setPrimaryItem reacts too slowly to nicely
change the action bar subject when paging, listen for
OnPageChangeListener.onPageSelected in addition.

Bug: 6384157
Change-Id: I45d995a472d4b3c71f1371dc7b993923423b7cf7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
093a5e1c3864827d1f3057bf0471e034259f6bd0 04-Jun-2012 Mindy Pereira <mindyp@google.com> Don't show sync for 30 days dialog.

There is a sync button/ flow in the widget to take care of this.

fixes b/6308859 Don't show "sync 30 days" dialog when creating widget
Change-Id: I7dbef676bf2a14b1b3d034810d6847cab7373fcb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
cd9d9745518f26676890fbd782075a192870b74a 04-Jun-2012 Mindy Pereira <mindyp@google.com> Make cancel button in widget work for acct/ folder selection

simplifies button bar and gives it touch feedback for both screens as well

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

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

Change-Id: Id1d982a19eb2d26c51aec661cee5dc23ef98c110
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
e25998f8c3d20b37682cfe00aadb4a70c81eb8e4 07-Apr-2012 Mindy Pereira <mindyp@google.com> Gmail will override the base widget provider so we can do folder syncing there.

Fix bug that when you create a widget for a folder other than the inbox,
it doesnt load that folder. The loader for inbox
was overriding the folder set in the intent.
Change-Id: I3c0aeed54421ee73339ca5144b18f119d8436d78
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
b1f573c59ec20f9149443e1e0cc8b64ff3a07fea 06-Apr-2012 Paul Westbrook <pwestbro@google.com> Embed Settings into Account object

Change-Id: Ie9e5d32fbd3c0dd21a43e7c6106c32641b51d467
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
c7968873cb1b64b669733aff1e4e6ef766ebd815 02-Apr-2012 Mindy Pereira <mindyp@google.com> Add shortcuts for email/ gmail

Change-Id: Id040760a5fa27d85f535f28a293df1a7ad98582a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
276c80bb3ca7cff5f2a0511e8a9d0452ae91d858 09-Mar-2012 Vikram Aggarwal <viki@google.com> Moar cleanup

Change-Id: I2ec187ec05d14000edbfff22acf2b8ff251530fb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
df28cf3062bb8681c185efe8be95140e44479497 07-Mar-2012 Mindy Pereira <mindyp@google.com> Disable manage folders button; fix background for tablet dropdown.

Change-Id: Ie0fe348144a9027375af5a1f0182e368cab153d5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java
efe3d25aa19da172fd5c3ec39539cdd91f29e927 01-Mar-2012 Mindy Pereira <mindyp@google.com> Destructive action dialogs.

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

Change-Id: I992bdf598af72a62deadfdfe695a64b89fad5c24
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.java
559c3b3d302b3f6d2c2cb43a909069d942652e34 01-Mar-2012 Mindy Pereira <mindyp@google.com> Use real default inbox setting.

Change-Id: Id8692cae322f1c0eea369ebc79c856da504f8390
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.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/FolderSelectionActivity.java
8a17d6e1fc5b4795bc5191c7beab2ab1ed38597b 24-Feb-2012 Mindy Pereira <mindyp@google.com> This CL makes the widget launch correctly

Allows the user to select an account and a folder.

Change-Id: I7760995166cff7db25264c2cc330bc394c984113
/packages/apps/UnifiedEmail/src/com/android/mail/ui/FolderSelectionActivity.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/FolderSelectionActivity.java