diff options
author | Vivek Sekhar <vsekhar@codeaurora.org> | 2016-01-08 14:21:34 -0800 |
---|---|---|
committer | jrizzoli <joey@cyanogenmoditalia.it> | 2016-01-11 22:03:29 +0100 |
commit | d5f34f89df796fb2f4174a968a1c463f1f24478a (patch) | |
tree | a1a5fe3da7841a27388f1ba33c2c3134927807fd /src/com | |
parent | cfb729d9810ddb28ef3485da2bb02699afeae461 (diff) | |
download | android_packages_apps_Gello-d5f34f89df796fb2f4174a968a1c463f1f24478a.tar.gz android_packages_apps_Gello-d5f34f89df796fb2f4174a968a1c463f1f24478a.tar.bz2 android_packages_apps_Gello-d5f34f89df796fb2f4174a968a1c463f1f24478a.zip |
Do not pass rtsp URL's to URLUtil.guessUrl
URLUtil.guessUrl API does not know to handle rtsp protocol.
Using the API causes www to be prefixed which break the protocol
handling.
CR-Fixed: SWE-6175
Change-Id: I40ce01778e5710d33f21db33a47054d4a9cab856
Diffstat (limited to 'src/com')
-rwxr-xr-x | src/com/android/browser/UrlUtils.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/browser/UrlUtils.java b/src/com/android/browser/UrlUtils.java index e1101605..3a7d64de 100755 --- a/src/com/android/browser/UrlUtils.java +++ b/src/com/android/browser/UrlUtils.java @@ -168,6 +168,7 @@ public class UrlUtils { return inUrl; } if (!hasSpace) { + if (inUrl.startsWith("rtsp:")) return inUrl; if (Patterns.WEB_URL.matcher(inUrl).matches()) { return URLUtil.guessUrl(inUrl); } |