diff options
author | Satish Sampath <satish@android.com> | 2009-06-04 18:21:40 +0100 |
---|---|---|
committer | Satish Sampath <satish@android.com> | 2009-06-04 18:24:20 +0100 |
commit | bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f (patch) | |
tree | 863fbc2a98772570d78a8ea946dcdfe3a6d2d2bc /src/com/android/browser | |
parent | 598c9ccf8641e0e4563bba2fd5613bcb4de766ec (diff) | |
download | packages_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.java | 1 |
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; } |