summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserBookmarksAdapter.java
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-01-07 15:01:09 -0500
committerPatrick Scott <phanna@android.com>2010-01-07 15:01:09 -0500
commit193def94f541f1d0bbd3ec43f1059112993a9a95 (patch)
tree38607aab90a3212af4edb208702cc858d3ff9c94 /src/com/android/browser/BrowserBookmarksAdapter.java
parenta3113e66a29118ec4271a4ce2e047fa722f2fcf6 (diff)
downloadpackages_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.java4
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";
}