From 193def94f541f1d0bbd3ec43f1059112993a9a95 Mon Sep 17 00:00:00 2001 From: Patrick Scott Date: Thu, 7 Jan 2010 15:01:09 -0500 Subject: Use LIKE rather than GLOB since the url contains '?'. Bug: 2271388 --- src/com/android/browser/BrowserBookmarksAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java') 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"; } -- cgit v1.1