diff options
author | Ben Murdoch <benm@google.com> | 2012-07-04 09:26:12 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-07-04 09:26:12 -0700 |
commit | 06f337b3976ad2093388932bac0003b371bccc5e (patch) | |
tree | 9532437282f49511008ebc91a30b235ed89fab12 /src | |
parent | dc743aad320f443f4caffbabea8dc6d3af538766 (diff) | |
parent | bc681880294a2e31a1325101917b6e36fd411bde (diff) | |
download | packages_apps_Browser-06f337b3976ad2093388932bac0003b371bccc5e.zip packages_apps_Browser-06f337b3976ad2093388932bac0003b371bccc5e.tar.gz packages_apps_Browser-06f337b3976ad2093388932bac0003b371bccc5e.tar.bz2 |
am bc681880: Remove ORDER BY clause on Search Suggestion queries.
* commit 'bc681880294a2e31a1325101917b6e36fd411bde':
Remove ORDER BY clause on Search Suggestion queries.
Diffstat (limited to 'src')
-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); } |