summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser
diff options
context:
space:
mode:
authorSatish Sampath <satish@android.com>2009-06-04 18:21:40 +0100
committerSatish Sampath <satish@android.com>2009-06-04 18:24:20 +0100
commitbc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f (patch)
tree863fbc2a98772570d78a8ea946dcdfe3a6d2d2bc /src/com/android/browser
parent598c9ccf8641e0e4563bba2fd5613bcb4de766ec (diff)
downloadpackages_apps_browser-bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f.zip
packages_apps_browser-bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f.tar.gz
packages_apps_browser-bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f.tar.bz2
Include ACCEPTED_URI_SCHEMA in url patterns to skip.
Without this inclusion, the web search detection code thought that URLs of the format about:blank or about:debug were web searches and passed them on to the search provider.
Diffstat (limited to 'src/com/android/browser')
-rw-r--r--src/com/android/browser/BrowserActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index e738d6c..53814f2 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -914,6 +914,7 @@ public class BrowserActivity extends Activity
// URLs and site specific search shortcuts are handled by the regular flow of control, so
// return early.
if (Regex.WEB_URL_PATTERN.matcher(url).matches()
+ || ACCEPTED_URI_SCHEMA.matcher(url).matches()
|| parseUrlShortcut(url) != SHORTCUT_INVALID) {
return false;
}