summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/ViewMode.java
Commit message (Collapse)AuthorAgeFilesLines
* Refactor how the warm welcome is triggered.Régis Décamps2014-06-261-11/+0
| | | | | | | | | | | | - 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
* Changes to support displaying a welcome tour.Greg Bullock2014-06-161-1/+13
| | | | Change-Id: Ice10fd8d629a9f4aebe5cfb7cb94bc1eb5ebaaeb
* small refactorAndy Huang2014-02-261-0/+4
| | | | | | wet -> dry Change-Id: Iccb44b3156d5a38d6f3d0ddfee5b8d21f00c98cd
* basic analytics supportAndy Huang2013-08-121-1/+18
| | | | | Bug: 9861033 Change-Id: I940e25dc12a7cbfe91b1d5ec457c7fc1045171df
* Add new ViewMode.Andrew Sapperstein2013-08-071-1/+21
| | | | | | | Works in OnePaneController. Need to wire up the buttons. Change-Id: Ia9aa5e696cbba1d170038e47d4941cc6fcf0a967
* Remove references to the Folder ListScott Kennedy2013-07-161-15/+3
| | | | Change-Id: I9f6b9d7f6c5100324703449da4761e67266ebed0
* Clean up a bunch of warningsScott Kennedy2013-06-251-2/+1
| | | | | Bug: 9565838 Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
* fix blank conversation view on tablet when launching from intentAndy Huang2013-04-011-18/+37
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Lock drawer when in search/sync modeRohan Shah2013-03-191-3/+11
| | | | | | | | | | Drawer will no longer pull out when the view mode is: -search_results_conversation -search_results_list -waiting_for_account_initialization Bug: 8373497 Change-Id: Ifaf0ada4802fcf772df2a91415ce898eebdedf44
* Remove back button when Waiting For SyncRohan Shah2013-02-211-0/+4
| | | | | | | | | | | | | When waiting for sync (No Conversation List/Item shown), there used to be a back arrow without any purpose attached to the Gmail icon. The change adds on consideration for the view mode being "WAITING_FOR_ACCOUNT_INITIALIZATION" such that the action bar icon does not present the back button. Bug: 8142710 Change-Id: I9294b25d3bd13ab54c1bc6e5a5d54d0770bb97c8
* Not in conversation view -> unset current conversationVikram Aggarwal2012-09-211-2/+2
| | | | | | | | | | | | | | | When the current conversation goes out of visibility, we should unset the mCurrentConversation because many objects get the conversation from AAC.getCurrentConversation(). I tested this with both one pane and two pane, with search and otherwise. But I wouldn't be surprised if this breaks something. If it does, revert! Fixes Bug: 7205219 Message list is scrolled down by itself until it reaches last read message Change-Id: I263c07e8063e7094a1defca76dde788b52df71ff
* new two-pane layoutAndy Huang2012-09-051-1/+13
| | | | | | | | | | | | | New, simplified 2-pane ViewGroup. This version shuffles three panes around, like the last one, but also supports other floating children like any FrameLayout would. The animation is now done using ViewPropertyAnimator. The cross-fade of the conversation list is now done with a separate "copy" view (ConversationListCopy) that's animated in tandem with the real list view. Bug: 6963808 Change-Id: Icee580f663a50537874c1f98e9bbac822f58e571
* fix spurious stopListening on the pager when loading from widgetAndy Huang2012-08-301-4/+4
| | | | | | | | | | | | | | | | 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
* Fragment save/restore machineryVikram Aggarwal2012-08-281-1/+11
| | | | | | | | | | | | | | | | 1. Avoids creating ConversationListFragment and FolderListFragment objects when restoring state. 2. Stores and restores the view mode correctly. 3. Moves core logic to the AbstractController where possible. 4. FolderListFragment scroll position and selected state is verified working in One-Pane and Two-Pane. 5. Fewer mode changes, less creation and destruction of fragments. Coming soon: 1. Restore scroll position in ConversationListFragment. 2. Fix some inconsitencies discovered and marked with TODO(viki). Change-Id: I4d11a576587b8e85300202650381b6e4df3ce61e
* Fixup behaviors for action bar when in search mode.Mindy Pereira2012-06-141-0/+7
| | | | | | | Now that the subject is showing in conv mode, can confirm this all works as expected. Change-Id: I707f3f46a2a5bdfa49e61bc1eacb217c5a1ba86c
* Support for unintialized accountsPaul Westbrook2012-04-111-0/+13
| | | | | | | | | This is the initial CL for support for a "wait fragment" A subsequent CL will make clicking on the buttons in the Manual sync case work Change-Id: I7f1ca27eb8792aaa94d354b2753d37783a72b309
* Hookup search in the UI.Mindy Pereira2012-03-071-1/+25
| | | | | | Remove ActionBarView interface and rename MailActionBar to actionbarview. We needed this for pre v-14 support, but no longer. Change-Id: I539b6751313e561311921010b03250df632260bc
* Start tying in fragments to Viewmode changesVikram Aggarwal2012-02-171-1/+1
| | | | Change-Id: I09eaeb0c338ab3205e0887a99b9684b4ac0549ca
* Create TwoPaneLayout from TriStateSplitLayoutVikram Aggarwal2012-02-061-1/+1
| | | | | | Minor changes to the OnePane and TwoPane Controllers to hook in the layout. Change-Id: Ie3fc73ed3fb63441d7ed9b79ce02c2f1e9f51e36
* Make ViewMode focussed and small.Vikram Aggarwal2012-02-021-54/+47
| | | | | | | | | | | | | | 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
* Make constants finalVikram Aggarwal2012-01-301-5/+5
| | | | Change-Id: Ib4085a09f650171a15c37a552bdbce6374551c41
* Remove view mode enum and add testsVikram Aggarwal2012-01-301-41/+11
| | | | Change-Id: Ie9bc74173047bdd80dacf943f1968d392d24e00f
* Create ConversationListFragmentVikram Aggarwal2012-01-301-84/+82
| | | | | | | | | 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
* Adding more ActivityController dependenciesVikram Aggarwal2012-01-241-0/+205
ui.ControllableActivity added from Gmail. One pane layout files brought in. Minor changes to make everything work with the test activity. Change-Id: I8cacd5f36394fe4a786590e2e381369a3afb5494