diff options
author | Ben Murdoch <benm@google.com> | 2012-07-04 16:51:38 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2012-07-04 17:00:53 +0100 |
commit | bc681880294a2e31a1325101917b6e36fd411bde (patch) | |
tree | d5fa6c707c4c87963cc56f40df9284c5d219a8de /src/com/android/browser/provider | |
parent | a770f8d4bd583e9a719af6ce314838db12003b33 (diff) | |
download | packages_apps_Browser-bc681880294a2e31a1325101917b6e36fd411bde.zip packages_apps_Browser-bc681880294a2e31a1325101917b6e36fd411bde.tar.gz packages_apps_Browser-bc681880294a2e31a1325101917b6e36fd411bde.tar.bz2 |
Remove ORDER BY clause on Search Suggestion queries.
Do not apply any ordering to results returned by the
Browser Provider when responding to search suggestions.
Change-Id: Ia487bc708d04ee629681692b5416ae65c6017012
Diffstat (limited to 'src/com/android/browser/provider')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index a66c333..014a32d 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -138,9 +138,6 @@ public class BrowserProvider2 extends SQLiteContentProvider { private static final String ZERO_QUERY_SUGGEST_SELECTION = TABLE_HISTORY + "." + History.DATE_LAST_VISITED + " != 0"; - private static final String SUGGEST_ORDER_BY = - TABLE_HISTORY + "." + History.DATE_LAST_VISITED + " DESC"; - private static final String IMAGE_PRUNE = "url_key NOT IN (SELECT url FROM bookmarks " + "WHERE url IS NOT NULL AND deleted == 0) AND url_key NOT IN " + @@ -1158,7 +1155,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { } Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_BOOKMARKS_JOIN_HISTORY, SUGGEST_PROJECTION, selection, selectionArgs, null, null, - SUGGEST_ORDER_BY, null); + null, null); return new SuggestionsCursor(c); } |