f975d9b0044086332a128e68c8503468beb44fee |
|
03-Oct-2014 |
Jin Cao <jinyan@google.com> |
Prevent suggestion db leak 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
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.java
|
ee3ecc06477ef573937319db5e3861697e68accc |
|
11-Sep-2014 |
Jin Cao <jinyan@google.com> |
Escape the query for appending in projection - switch into using rawQuery so we can properly escape all arguments, including the ones in the projection. - some cleanup around suggestion provider. b/17459938 Change-Id: I4c6e43aeb5c1f8a78d0df4cd577a4e2aa0b7d515
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.java
|
e12e059c515e53464d511912ea7a084a0d2a4922 |
|
06-Sep-2014 |
Jin Cao <jinyan@google.com> |
Change data to currentTimeMillis It looks like the framework's SearchRecentSuggestions use System.currentTimeMillis as date. Let's use that as well so our entries are ordered properly by date. b/17401064 Change-Id: If097d691b37c12a0b17168c22ae1f417d0196615
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.java
|
ea13ca7714b26debe2fa284a67ce2b5ed92e7116 |
|
27-Aug-2014 |
Jin Cao <jinyan@google.com> |
Discard mode bits during upgradeDB check. Also remove all references of mode because it's no longer used. b/17211164 Change-Id: Ifd63141a770a90926774ca635eac712f99b43da5
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.java
|
f3426674143b59eb169f3501562956dbb547a438 |
|
23-Aug-2014 |
Jin Cao <jinyan@google.com> |
Prevent database wipe for search b/17211164 Change-Id: I3eb180344ebad436a55d20b8ad7435a21611a036
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.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/providers/SearchRecentSuggestionsProvider.java
|
f8fcb800aa4562734c6a4f165d92d09e78a8c484 |
|
25-Jun-2012 |
Mindy Pereira <mindyp@google.com> |
Add search suggestions authority. Has contact suggestions as well. Change-Id: I395b9baaad019cf08151d75f586c175f6b6e99ab
/packages/apps/UnifiedEmail/src/com/android/mail/providers/SearchRecentSuggestionsProvider.java
|