diff options
author | Patrick Scott <phanna@android.com> | 2010-01-07 15:01:09 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2010-01-07 15:01:09 -0500 |
commit | 193def94f541f1d0bbd3ec43f1059112993a9a95 (patch) | |
tree | 38607aab90a3212af4edb208702cc858d3ff9c94 /src/com/android/browser/BrowserBookmarksAdapter.java | |
parent | a3113e66a29118ec4271a4ce2e047fa722f2fcf6 (diff) | |
download | packages_apps_browser-193def94f541f1d0bbd3ec43f1059112993a9a95.zip packages_apps_browser-193def94f541f1d0bbd3ec43f1059112993a9a95.tar.gz packages_apps_browser-193def94f541f1d0bbd3ec43f1059112993a9a95.tar.bz2 |
Use LIKE rather than GLOB since the url contains '?'.
Bug: 2271388
Diffstat (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java')
-rw-r--r-- | src/com/android/browser/BrowserBookmarksAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java index d1fdf07..2601df5 100644 --- a/src/com/android/browser/BrowserBookmarksAdapter.java +++ b/src/com/android/browser/BrowserBookmarksAdapter.java @@ -316,8 +316,8 @@ class BrowserBookmarksAdapter extends BaseAdapter { originalUrlNoQuery, urlNoQuery, originalUrl, url }; String where = BookmarkColumns.URL + " == ? OR " + BookmarkColumns.URL + " == ? OR " - + BookmarkColumns.URL + " GLOB ? || '*' OR " - + BookmarkColumns.URL + " GLOB ? || '*'"; + + BookmarkColumns.URL + " LIKE ? || '%' OR " + + BookmarkColumns.URL + " LIKE ? || '%'"; if (onlyBookmarks) { where = "(" + where + ") AND " + BookmarkColumns.BOOKMARK + " == 1"; } |