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
diff --git a/src/com/android/browser/UrlUtils.java b/src/com/android/browser/UrlUtils.java
index e110160..3a7d64d 100755
--- a/src/com/android/browser/UrlUtils.java
+++ b/src/com/android/browser/UrlUtils.java
@@ -168,6 +168,7 @@
return inUrl;
}
if (!hasSpace) {
+ if (inUrl.startsWith("rtsp:")) return inUrl;
if (Patterns.WEB_URL.matcher(inUrl).matches()) {
return URLUtil.guessUrl(inUrl);
}