Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix UserAgent & WebView problem
fix UserAgent & WebView problem
  • Loading branch information
ericchan3721 authored Jul 22, 2020
commit 915b8d9a8ad6a1e8ab97268e08f9db191c202ffc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setDomStorageEnabled(true);
// add this line (112)
mWebView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19");
mWebView.getSettings().setUserAgentString(mWebView.getSettings().getUserAgentString().replace("; wv", ""));
// mWebView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19");

LayoutParams layoutParams = this.getFullscreenLayoutParams(context);
//new LayoutParams(
Expand Down