diff options
author | Ben Murdoch <benm@google.com> | 2012-07-04 16:51:38 +0100 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2012-07-04 13:52:58 -0700 |
commit | 2f6a636c601b861843d4e42c6980ec494c844969 (patch) | |
tree | d5fa6c707c4c87963cc56f40df9284c5d219a8de | |
parent | 1fff49b1a1e3b5f17bcf635cec3715e903164d63 (diff) | |
download | packages_apps_browser-2f6a636c601b861843d4e42c6980ec494c844969.zip packages_apps_browser-2f6a636c601b861843d4e42c6980ec494c844969.tar.gz packages_apps_browser-2f6a636c601b861843d4e42c6980ec494c844969.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
-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); } |