summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/ActionBarController.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "UnifiedEmail: Supported Email search function"Danny Baumann2016-12-301-2/+2
| | | | | | This reverts commit ad4f76791d5306f6046150cefd7de07d9d15aa33. Change-Id: I396973b7f27a5df483a7845b16b1db804bb8916b
* UnifiedEmail: Supported Email search functionweitan2016-08-241-2/+2
| | | | | | | | | | | | | | | | | | | 1. Use the search function to search the local mail. 2. Search results interface: Filters All, Subject, Sender, Receiver click on the different filter, and search the corresponding results. All for the default selection filter. 3. Search results interface: slide switch filter, remove "sliding removing a single mail" effect. 4. Search results interface: alternative condition, slide switch filter, cancel the multiselect state. 5. Search results interface: UI-filters layout, sliding effect, search, according to the number of search results highlighted. Change-Id: I2af40a386de55e221878bd346cda3ea1cff8f2fa CRs-Fixed: 1023498
* Peek mode for 2-pane landscapeAndy Huang2014-10-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Peek mode allows CV fragments to be visible but not marked viewed and read. TPC keeps a global flag for whether the current conversation should be peeked vs marked read. I have tried to manually reset the flag in the 6 cases that cause the current conversation to change: 1. tap another conversation (don't peek) 2. swipe to another conversation (don't peek) 3. keyboard-advance to another conversation (peek) 4. auto-advance=newer|older (don't peek) 5. auto-advance=list (go older & peek) 6. empty CV and a list cursor has loaded (peek at i=0) Swipe, in particular, required a new onConversationViewSwitched() call in CPA because onPageSelected() is triggered both when swiping around in the view pager AND when simply setting the initial page as part of constructing a view pager. Thankfully, there is only ever one copy of this peek flag in the app, in TPC, since AAC/TPC is where all the work is done both to mark conversations seen and to switch to new conversations. Rotation to portrait on tablets now requires tearing down a ViewPager; this code and thought process is documented here: http://go/xqaxk TODO: selected indicator for transition from peek->read state in-place TODO: touches in CVF should mark it read Bug: 17291366 Change-Id: I24f71a2b7985773814d8caad9f3ab3fe5c3609c8
* Remove retry UI state and enable delete for sendingJin Cao2014-10-061-2/+1
| | | | | | | | | | | Until the "Failed" state is fully implemented, we are going to stick with the old behavior and remove the new Retrying UI state. We'll also enable delete for Sending items so users can delete messages that are perpetually sending. b/17814043 Change-Id: I6e510a553123fa5fdf6bada0fae92bb3e82ec798
* Disable unused menu itemsJin Cao2014-09-291-30/+26
| | | | | | | | | | Since we now have keyboard shortcuts, it's no longer enough to simply set menu items invisible. For menu items that are no longer valid, use both setVisible and setEnabled. b/17692730 Change-Id: Iad9fb9b6638a68a4650cba699ea430c5c6e6e0fe
* New keyboard shortcutsJin Cao2014-09-251-4/+1
| | | | | | | | | Does not include ctrl+ENTER for SEND & we need a new key for REPLY since we are not supporting shift. b/17070243 Change-Id: Ia5f179336dfc2b6631e1a5f26ee888f82f4873c0
* Enable keyboard shortcutsJin Cao2014-09-091-0/+1
| | | | | | | Alphabetic shortcuts require quertymode = true. b/17070243 Change-Id: I3b37b8e94cb1d02df6a9998e4f91049da5464fc8
* Use custom toolbar only for tablets and fix line sizeJin Cao2014-09-021-0/+4
| | | | | | | | | | | - 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
* Show current folder on tablet landscapeRohan Shah2014-08-271-0/+10
| | | | | | | | | | | When in conversation view mode, we were not showing any text on the title bar (setEmptyMode). Changed it to be visible if in landscape by checking the is_tablet_landscape boolean (renamed), which we currently use with TwoPaneController. Bug: 16985409 Change-Id: I9a35b3b46f024584e1c47936def5aa854c52813d
* Add custom view for toolbar to reposition search iconJin Cao2014-08-251-5/+0
| | | | | | | | | | | | 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
* Quantum search - version 1Jin Cao2014-08-211-151/+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
* Disable Change Folder if account does not support itRohan Shah2014-08-151-0/+2
| | | | | | | | Added a TODO for cleaning up SelectedConversationsActionMenu. Bug: 17070852 Change-Id: I03224f7e2b32b3fb623df5982a8959a70d5a01e6
* switch to appcompat. b/16664350Andrew Sapperstein2014-08-041-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Support "deleting" in outboxJin Cao2014-08-011-1/+5
| | | | | | | | | | | | | - Allow only failed items in Outbox to be swiped away/deleted. - Same applies for multi-selection. - "Deleting" in Outbox means remove the outbox label from the failed message and applying the drafts label. This needs to be implemented by both Gmail and Email providers. - Added new ConversationOperation for this new action. b/4080109 Change-Id: Ia9c8e386c7c65693f72fda85a49cb6a1b7d1fec1
* Action bar styling.Andrew Sapperstein2014-07-251-0/+597
Restores back button and drawer on old versions. b/16510684 b/16167419 Change-Id: I6b48a2d350330403ebf72304d74be957b6de7cb4