History log of /packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9fa7c236530a430f9ad359c0b7770c2d65361b05 16-Oct-2014 Jin Cao <jinyan@google.com> Reset search button visibility on account change

b/17982775

Change-Id: Ia27a7364f49b7cf8a1cbfc158123b543d6b8b7fc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
4781f33452453bd47481e04a17db9b4dda11d672 15-Oct-2014 Jin Cao <jinyan@google.com> Add current focus to MailActivity toString

Change-Id: I8df1dba5167523a6b2468263cc29ea9398631f56
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
f14d8b33f649357f839f7b06db22ff3adef89c4f 08-Oct-2014 Jin Cao <jinyan@google.com> Change status bar color for search

b/17546831

Change-Id: Ib72000b6a2bcaa325dc2b82a819a7c823454a0d8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
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/MailActivity.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/MailActivity.java
524ded5f9d27dda75c53d256922a39c867857575 05-Sep-2014 Jin Cao <jinyan@google.com> [Quantum search] new two-pane land search result list

In two-pane landscape, change the search bar accordingly
when we are in conversation mode (so the menu items are
visible).

b/17361017

Change-Id: Icb07fff91f0533681478d866430fbaa82bc5850c
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
734718a4b2c86c0f5fe3e24113855b11aac6717e 16-Sep-2014 Andrew Sapperstein <asapperstein@google.com> Set status bar color in CAB mode. b/17471621.

Change-Id: If23bdce538aa647952d193a9976d6a27bcfd5829
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
406ae08b92f78f26fe83830897570c9db1ab23aa 27-Aug-2014 Greg Bullock <gregbullock@google.com> Welcome tour smooth launch

Remove the loader mechanism and instead have the activity
determine if the tour is required.

Also a minor refactoring of moving the VOICE_SEARCH_REQUEST_CODE from
MaterialSearchViewController into AbstractActivityController.

Bug: 16124942 "WarmWelcome screen is shown after Inbox view is presented..."
Change-Id: Icd0ed2a976d8e8acc387336d1a81c690ab961efb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
8e98ac7dbff64224073492f323c989502fc49baf 06-Sep-2014 Jin Cao <jinyan@google.com> Log when hard keyboard is used

b/17357003

Change-Id: I69ee4fcafe13140208b0165b005774536cb5d060
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
7ae078381e3552a63e93485b09eed68a5daf798e 03-Sep-2014 Jin Cao <jinyan@google.com> Merge "Keyboard support for focused state" into ub-gmail-ur14-dev
d03347378e0eb563bcd350c238823f12fdb23684 02-Sep-2014 Jin Cao <jinyan@google.com> Use custom toolbar only for tablets and fix line size

- only use custom toolbar for tablets so phones won't get any
bugs associated with it.
- for tablet toolbar title, set it to single line and ellipsize
properly in case of long title.
- also align title text accordingly.

b/17332114 b/17331396 b/17360830

Change-Id: Ib7eecf684303a877a228d7453e2df8825842b6ba
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
8619cd7d2ffaa648cf7590419d3cd26e5bb1024b 25-Aug-2014 Jin Cao <jinyan@google.com> Merge "Add custom view for toolbar to reposition search icon" into ub-gmail-ur14-dev
090ea0188eec1cd29d84d5890cbba6aebfa6b6ce 24-Aug-2014 Jin Cao <jinyan@google.com> Add custom view for toolbar to reposition search icon

Remove search from the default menu items and add
the search button to a custom view so we can position
it ourselves. This involved extending the toolbar
class because custom views cover up the toolbar
title by default.

b/17070560

Change-Id: Iba7d127a58b8061d84228732fcadbd82665d0835
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
f318bc3cb806774a07421a413a918aa6afb8792f 24-Jul-2014 Régis Décamps <regisd@google.com> Welcome tour: Shortcut to discard the welcome tour

Add a method that indicates wether the welcome tour was shown on
this device. Hence, the AbstractActivityController can avoid calling
the WelcomeTourStateLoader machinery.

b/15705426

Change-Id: Iacbb94f46a9de4bf7f1700ef5c244d5a50007810
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
d4bb2af4a545493b88e900be5262329c715dd38a 28-Jul-2014 Tony Mantler <nicoya@google.com> Megadrawer

b/16458862

Change-Id: I476ee21209e8108fc77e3d265326347a53f13ef5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
74470048daf58bc4e14130e9c8adec2db78c8163 22-Jul-2014 Tony Mantler <nicoya@google.com> Rearrange MailActivity layout loading

Need to load the layout earlier so that we can access a
Toolbar instance within the layout itself as the action bar

b/16458862

Change-Id: Iba187bb1495fe343a78598355586e1b5253452a2
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
944ef3b09d15d28f13cf63e3410850e246b1d54f 17-Jul-2014 Greg Bullock <gregbullock@google.com> Extract AccountLoadCallbacks so that it can be re-used.

Change-Id: I24a50abf78b1a44269914126a86813c3e8b97d4e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
1851127f16f657112e72e56be6c74f325787946a 08-Jul-2014 Paul Westbrook <pwestbro@google.com> Fix Crash

Bug: 16127858
Change-Id: Ib282085130cfd1c53d791e063ee5e20431c7768d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
4def3bfdadbab0ba96f713ef9878ce1028672637 01-Jul-2014 Paul Westbrook <pwestbro@google.com> Fix action bar icon

The action bar app icon is now suppressed both on pre-L and
in L

Change-Id: Ifcf416505622ae72f260049c0b1e4a1e972e5431
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
5043cc2ae07bbf82691101585084bb7f1334bb23 28-Jun-2014 Paul Westbrook <pwestbro@google.com> On L devices hide app icon

Change-Id: Ibe16fd44a1d5aeefec7c8b9a2c91f4a3f8d6fe9b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
779dd6012a6c5b4d71255085059e57d94eab1a3f 23-Apr-2014 Jin Cao <jinyan@google.com> Logging for cold start and search

Added timing logging for cold start into a list view and search.

b/13628866

Change-Id: I9d3214ccb8ba259354c087ab89f447d23ee02e89
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
68a25166fc53d4c4dbd9aab46f8f43a62d0861df 04-Apr-2014 Scott Kennedy <skennedy@google.com> Stop keeping all the things

They're not needed.

Change-Id: I304fff784cbd4cc87c674e950f7a1b891f11413b
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
2afc01e8b222eb68049c79988c65e80819a1fd50 16-Jul-2013 Paul Westbrook <pwestbro@google.com> Suport for Contact photo teaser

1) Move the preference for show sender images to MailPrefs
2) Create a ConversationListHelper in MailActivity

Bug: 9497358
Change-Id: I6965d22891b3a8e05c89fc0bfe1330732c19d36a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
3b965d78774a42358ce6bbdcc43b4c8df130a60e 25-Jun-2013 Scott Kennedy <skennedy@google.com> Clean up a bunch of warnings

Bug: 9565838
Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
aa941d7e107f7ce09838bd4daf295259d126dfa2 05-Jun-2013 Vikram Aggarwal <viki@google.com> Copious documentation

Documentation on usage of loaders close to the source of the action.

Change-Id: I6562950d781dbab3ba00f7d921eeae88ed64f610
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
57246a4bf94e8b440c0597fa4a8e4f4e8a46532a 21-Apr-2013 Paul Westbrook <pwestbro@google.com> Use the ActionBarDrawerToggle

Bug: 8668887
Change-Id: I1efbee696aa46fa6d1226f7e23793dbfdbcbdddb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
e6459424b3e46d768865c908af1caa932f783095 02-Apr-2013 Andy Huang <ath@google.com> fix blank conversation view on tablet when launching from intent

If a 2-pane layout pass finished before the FIRST_FOLDER loader returned
results, the layout pass triggered an early showConversation() operation
before mConversationToShow is set by the FIRST_FOLDER loader.

The later showConversation() in the FIRST_FOLDER onLoadFinished did not
re-run the operation, because it assumed a transition would run that
showConversation had to wait for. The transition does not actually run
because TwoPaneLayout debounces consecutive requests to change the view
mode.

So...
* don't switch modes on FIRST_FOLDER load unnecessarily
* FIRST_FOLDER load was triggering a mode change to LIST, so move that
into loadAccountInbox
* don't have 2-pane ask ViewMode to see if the mode changed, have it
ask TPL instead

Add some helpful optional logging, and a facility to ObjectCursorLoader
to slow down race conditions for debugging purposes.

Bug: 8408885
Change-Id: If4672c0f6c4426f810de33f65694119d678bacfb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
78324d6394baf31f05bf986f3f8e5fa0686011bd 21-Feb-2013 Vikram Aggarwal <viki@google.com> Recognize low disk, and propagate the appropriate error code

If the device gets in low disk space mode, Gmail sync will potentially
never succeed till the device recovers from this mode. In such a case,
propagate the appropriate code up to the UI so it can accurately
message the user.

This is Unified Email's half of the code, where we actually set the
storage_low/storage_ok state.

Bug: 7662097 Low Disk causes "No connection" dialog in gmail
Change-Id: I08004aad821b6c4f17ed6179e04726df9ec1b8b4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
f3d28bf189d84d9c4457d64ec18198841583d1bb 14-Feb-2013 Paul Westbrook <pwestbro@google.com> Removed what's new dialog

Change-Id: Ifa63dc10aba8a6a644dafbeae4694ae117d8d6cc
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
bcb16b98140a83a4db3c51568d21c839595f73df 29-Jan-2013 Vikram Aggarwal <viki@google.com> Check tablet mode through resources

Change-Id: I790fef6ef7ce3ca97ebba1fa220f44123c2d2e9d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
92ac1023ec8dcc4f224cf5eb83e87382ef688887 03-Jan-2013 Vikram Aggarwal <viki@google.com> Remove static activity instance

1. A static activity reference is too unwieldy; remove the static
activity object in favor of a static string object.

2. Do less work when changing accounts: instead of creating a new NDEF
message every time an account is changed, we store away just the
account name, this is significantly cheaper.

3. Construct an NDEF message on NFC push requests, since NFC events
are a lot less frequent than account changes.

4. Minor changes to remove unused variables, and removing incorrect
comments.

Bug: 7883592 mild activity leak

Change-Id: I88f634ab79fe7785cf8a89397d211ea7736c5edb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
f6c00b8304062a17d14b484bd1fc33a83c4a90d7 03-Jan-2013 Vikram Aggarwal <viki@google.com> Remove NFC handling from AbstractMailActivity

1. Remove the NFC code left behind after
https://googleplex-android-review.googlesource.com/#/c/210327/

2. Expose one fewer method from MailActivity.

3. Does not fix the activity leak, but does make leaks easier to
debug.

Bug: 7883592 mild activity leak

Change-Id: Icde61c9b3251bf1686c50e4b5184d3d56fd2941a
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
8c8c9927c5b1ec2cb26ee20c3e755121723b979b 08-Nov-2012 Andy Huang <ath@google.com> prefs cleanup

This is purely a refactor with no intended functional change.

Start over with a new Persistence class. New name is MailPrefs.
No relation to Gmail's Persistence class to minimize API
confusion across unified vs. gmail stores and gmail vs email
apps.

So far the only consumer is the widget provider and the
"what's new" version checker, so no support for
account-specific prefs yet. Move all widget pref and
"what's new" calls to MailPrefs.

Bug: 7497168

Change-Id: I4008fb6c180067d10654391c5c8fa86e105db3bb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
fafcd17adae9b7ba5c270611d0f53608ced92e2e 02-Nov-2012 Scott Kennedy <skennedy@google.com> What's New Dialog

https://docs.google.com/a/google.com/file/d/0B9gZLUc5DY13VmlSaldIaFJ0UHM/edit

Show a "What's New" dialog to first time users, and after certain
upgrades, outlining new features.

Also link to it from the About screen, possibly showing slightly
different content in the dialog.

Also shows a dialog about auto-fit when you first enter a wide
message if auto-fit is disabled and you never explicitly set it.

Bug: 7397845
Change-Id: I2f2bf9668d3d105b8a7ccf9857eb6c76c32c6a74
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
fdd67158752d82981a5b7f1a52fc197891cfa2f1 03-Oct-2012 mindyp <mindyp@google.com> Use onResume to check the state of the accessibility service.

avoid adding accessibilitystatechangedlistener, which was causing us
to leak appcontexts.
this works because the only way to enable/disable accessibility is to
go to settings, which will pause gmail.
Fixes b/7275423 3.5MB/h memory leak observed on nakasi for gmail

Change-Id: I5d61070e2078485cc68f88e7d6989f8902f5cdc5
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
6edfb2389eda42bfaa682ef8e0ebe41a6276b686 23-Sep-2012 Paul Westbrook <pwestbro@google.com> Disable StrictMode logging

Bug: 7214073
Change-Id: I0bde83cd97c2dce493f5755413da0df9fafcf598
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
f5a2442dc520d3241124c858c22e8de557b84460 04-Sep-2012 mindyp <mindyp@google.com> Calling in the other order is destroying what we do in onprepareoptionsmenu

This change:
https://googleplex-android-review.googlesource.com/#/c/221726/4
caused search mode action bar to be entirely messed up; no menu items,
no search view

Fixes b/7102613 Search results missing SearchView in action bar
In this way, our method AND the super method both get to handle onPrepare

Change-Id: Ib6b296d552578ec8811912dc056d93dd3d896fef
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
d736a385f1ce5e1a59a7953f9245526b37126809 29-Aug-2012 Andy Huang <ath@google.com> minimize state changes to avoid blank views

Disable 2-pane layout transitions for now. Some devices
sometimes don't terminate the transition, which prevents
layouts from happening.

Refactor actionbar's menu prep to avoid unnecessary changes to
actionbar view state. Frequent changes induced actionbar's
internal Spinner to sometimes do layout during a layout,
orphaning view subtrees and causing blank views.

Now that the known root causes are fixed, disable the original
workaround so new issues can surface and be fixed sooner.

Remove an unnecessary menu invalidate in AAC.

Remove unnecessary view containers in 2-pane layout.

Bug: 6946182
Change-Id: I8334a3846996ca06c0da56f1c1a33089a2fca3de
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
1ee96b2b100546b5b69ad42c5bc3755a4293d1a3 25-Aug-2012 Andy Huang <ath@google.com> handle missing messages every which way

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

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

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

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

Bug: 6889742
Bug: 7005366
Change-Id: Id37f878e82523837b7f105d49fb736f774bad224
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
00179f19e413461498599ab7e6eb6914cc5c3671 10-Aug-2012 Andrew Sapperstein <asapperstein@google.com> Added the visuals for the new error styles.

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

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

Change-Id: Ifa67a0f72d100191c2cdb47f601e6ff04a765e02
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
8076321d4fbc5599a2d2dc7c5b9c2a3ec9586f40 06-Aug-2012 Mindy Pereira <mindyp@google.com> Dont allow tapping the area outside the spinner to open the spinner.

Also, combine the tablet and phone layouts.

Fixes b/6930980 deal with the highlight when tapping on the action bar

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

Change-Id: I0f8c41eedab1c570b337bcc93e3c0599507ece7e
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
fa20c1a4e36e0da2577baddbbb38a988b2017339 23-Jul-2012 Mindy Pereira <mindyp@google.com> Move nfc sharing logic into unified.

Change-Id: I9e735480eef24dd30a12eac9a36abdcbcc7b14e0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
b1c34dc418e31ae0bfe1b73b6642ed42f5dad67b 18-Apr-2012 Andy Huang <ath@google.com> avoid restartLoader in configuration change sitations

The ConversationCursor and its loader were being unnecessarily
re-initialized on rotation. Only use restartLoader when the
folder changes from an existing previous folder, like when you
switch folders.

Also begin to add an onRestoreInstanceState step, which is very
handy for last-second initialization, after initLoader results
are re-delivered in the rotation case.

Change-Id: Idb39f24cb31f0ccc41379947b047e0af0e615551
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
4cb1ac200c66ccf9aea5ec043aae723e26c5374e 02-Apr-2012 Paul Westbrook <pwestbro@google.com> Remove red flashing

Change-Id: Id81fc7dbd6197b327787e6ff656fbcd2d813fe39
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.java
fd0c2974af56ad244006faab2651e054974a4b7b 27-Mar-2012 Mindy Pereira <mindyp@google.com> Handle search hard key.

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

Change-Id: I2ec187ec05d14000edbfff22acf2b8ff251530fb
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
dc9d365451ff93f9f0b6f800dc53d036604fb38f 05-Mar-2012 Vikram Aggarwal <viki@google.com> Remove legacy methods from interface

Change-Id: I9bd3e3589abdc52b067315d150a9a1edf9e60661
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.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/MailActivity.java
f83bde45c00c3185af0a1e8084875a7d00fcc17b 24-Feb-2012 Paul Westbrook <pwestbro@google.com> Enable StrictMode in UnifiedEmail

Fix one problem where ConversationCursor was not being closed.

Change-Id: I573c6897bd66453edae369b794970f5d9ef423c7
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
bc19a2fe68e735c00ddbc2260bb76e12a1c55dc0 23-Feb-2012 Vikram Aggarwal <viki@google.com> Fix back in conversation mode

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

Some funny business with relative layouts and z-order
and the undo bar. will fix that in a second cl so i can
animate in/out undo bar.
Change-Id: Ia4d3684ff26563e56b09cafb9ee25980162d1168
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.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/MailActivity.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/MailActivity.java
d247dc966bca1ed303039c2893c54979d448a336 11-Feb-2012 Vikram Aggarwal <viki@google.com> Allow batch selection of conversations.

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

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

Change-Id: I7122a921037c83dc63e9f0987d0f95171061cdf9
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
8b15263097bd9ce1a28db981b6a85261e6cb6886 03-Feb-2012 Vikram Aggarwal <viki@google.com> Change ActionBar to allow reading real accounts.

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

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

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

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

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

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

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

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

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

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

Change-Id: I8cacd5f36394fe4a786590e2e381369a3afb5494
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java
a55b36cb6b75ce8096812183651e89115300975a 13-Jan-2012 Vikram Aggarwal <viki@google.com> Bring more classes into Unified Mail

Bringing in
SubjectDisplayChanger: (was called ConversationSubjectDisplayer in Gmail)
AbstractMailActivity: (was called GmailBaseActivity in Gmail)
MailActivity: (was called GmailActivity in Gmail)

These are called the same things they were in Gmail:
ActivityController
ControllerFactory
OnePaneController
TwoPaneController

Change-Id: Ie761407cad891b669172acc729950f9d358f5c34
/packages/apps/UnifiedEmail/src/com/android/mail/ui/MailActivity.java