Commit 083e5038 authored by Xinayder's avatar Xinayder

Jelly: remove 'Mobile' from desktop user agent

Change-Id: I38dbbe67a8f2df8f8810429afc00a5f9607acd31
parent 82147958
......@@ -133,7 +133,8 @@ public class WebViewExt extends WebView {
if (matcher.matches()) {
String mobileDevice = matcher.group(2).replace("; wv", "");
mMobileUserAgent = matcher.group(1) + mobileDevice + matcher.group(3);
mDesktopUserAgent = matcher.group(1) + DESKTOP_DEVICE + matcher.group(3);
mDesktopUserAgent = matcher.group(1) + DESKTOP_DEVICE + matcher.group(3)
.replace(" Mobile ", " ");
getSettings().setUserAgentString(mMobileUserAgent);
} else {
Log.e(TAG, "Couldn't parse the user agent");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment