|
@@ -215,7 +215,7 @@ public class AccompanyFragment extends BaseMVPFragment<FragmentAccompanyBinding,
|
|
|
private void initWebView() {
|
|
|
//声明WebSettings子类
|
|
|
WebSettings webSettings = webView.getSettings();
|
|
|
- webSettings.setUserAgentString(webSettings.getUserAgentString() + WebConstants.WEB_UA_PARAMS);
|
|
|
+ webSettings.setUserAgentString(webSettings.getUserAgentString() + WebConstants.WEB_UA_PARAMS + WebConstants.WEB_UA_PARAMS_STUDENT);
|
|
|
webSettings.setGeolocationDatabasePath(getContext().getFilesDir().getPath());
|
|
|
webSettings.setGeolocationEnabled(true);
|
|
|
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
|