summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/MaterialSearchViewController.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "UnifiedEmail: Supported Email search function"Danny Baumann2016-12-301-91/+38
| | | | | | This reverts commit ad4f76791d5306f6046150cefd7de07d9d15aa33. Change-Id: I396973b7f27a5df483a7845b16b1db804bb8916b
* UnifiedEmail: Supported Email search functionweitan2016-08-241-38/+91
| | | | | | | | | | | | | | | | | | | 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
* Fade in/out the search barJin Cao2014-10-131-38/+101
| | | | | | | | | | | | | | | | When showing/hiding the search bar, fade it in/out instead of simply setting the visibility. Other changes: - remove the check for state change inside showSearchActionBar because we previously assumed that a given state will always look the same. However, this is no longer true as ONLY_ACTIONBAR looks different on tablet landscape verses portrait (landscape shows the transparent background while portrait always shows the white search bar). b/17546831 Change-Id: I9120afd3ff89a4c6611b3b4510c2d8427285f3d8
* Change status bar color for searchJin Cao2014-10-071-4/+13
| | | | | | b/17546831 Change-Id: Ib72000b6a2bcaa325dc2b82a819a7c823454a0d8
* Don't assume that we'll close our db after saveRecentQueryJin Cao2014-10-061-6/+9
| | | | | | | | | Also check for the case where we try to create a mergecursor with empty array. b/17879155 Change-Id: I0e5339248ba04d1ed6fc1734ab11e129a06e2290
* Prevent suggestion db leakJin Cao2014-10-031-3/+10
| | | | | | | | | | | Since all queries and saves are run on the background, it's possible for the main thread to call close and then the background thread calls getReadableDatabase(). If this happens, the opened database will leak. b/17790798 Change-Id: I2d273e8989c4f01d32657d0d8abf1cabc247e719
* Bug fixes for search tabletJin Cao2014-09-231-43/+45
| | | | | | | | | | | | | I introduced with some bugs with my recent CLs for showing the transparent search bar in tablet landscape. - don't call onConversationListLayout unless it's in tablet landscape (this is documented on the interface). - update the code for setupEndingButton to take into the new alignment into account. - set search button to invis after animating it to transparent. Change-Id: I348626603b47eb8a536cd5c54eaa9db5027fdbfe
* [Quantum search] new two-pane land search result listJin Cao2014-09-171-1/+28
| | | | | | | | | | 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
* Welcome tour smooth launchGreg Bullock2014-09-121-4/+2
| | | | | | | | | | | 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
* Always try to close DB after saveRecentQueryJin Cao2014-09-051-7/+5
| | | | | | | | | | Since saveRecentQuery is called before we perform search, we should always try to close the database afterwards since we are launching a new activity for search. b/17393692 Change-Id: I55d7a0cec024050fa10de4b8ed0e13b9d3bc0299
* Merge "Add Toolbar elevation drop shadow" into ub-gmail-ur14-devRohan Shah2014-08-291-5/+0
|\
| * Add Toolbar elevation drop shadowRohan Shah2014-08-291-5/+0
| | | | | | | | | | | | | | | | | | Added the elevation element to the toolbar layout and got rid of the search drop shadow. Bug: 17204615 Change-Id: I1c52acc2096342d7ba9ebb1e2e6869614c7602d1
* | Don't close recent suggestions DB if there is a pending saveJin Cao2014-08-291-9/+31
| | | | | | | | | | | | | | | | | | | | Since the save to DB is performed on asynctask, don't close the DB if there is a pending save waiting to happen. Once the save is complete, then we can close the db. b/17285133 Change-Id: I1d677e8fb4b28c77315dc160b8960fc54d1b46ee
* | Trim search before performingJin Cao2014-08-281-0/+1
|/ | | | | | b/17285499 Change-Id: I632163124587743de3175c7c2ee24331da0267f5
* Disallow empty search stringJin Cao2014-08-261-2/+5
| | | | | | b/17285499 Change-Id: I7d069110413e960d2da47970748a607943d3127f
* Merge "Refresh suggestion list and persist search query" into ub-gmail-ur14-devJin Cao2014-08-251-0/+4
|\
| * Refresh suggestion list and persist search queryJin Cao2014-08-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | - refresh suggestion list when it goes from gone to visible. - for search view modes, persist the search query since the search actionbar is always visible for search result list. this is applicable when the user taps into a search result then navigate back to the list. b/17258499 Change-Id: Iedd3090c8c9efd5125a563b67ccde136a82a2ec5
* | Add custom view for toolbar to reposition search iconJin Cao2014-08-251-0/+1
|/ | | | | | | | | | | | 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
* Search last-minute updates before dogfood!Jin Cao2014-08-211-5/+6
| | | | | | | | | | Scrim transparency should be 20% instead of 50%. move requestFocus to inside hasFocus block. Fix back button navigation. b/16518233 Change-Id: I66f3e7deb81dda3959ed05e0661c4ff13786f495
* Quantum search - version 1Jin Cao2014-08-211-0/+197
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