|
@@ -91,7 +91,7 @@ public class MusicScoreFragment extends BaseFragment<MhFgMusicScoreFragmentBindi
|
|
private void initWebViewSetting() {
|
|
private void initWebViewSetting() {
|
|
//声明WebSettings子类
|
|
//声明WebSettings子类
|
|
WebSettings webSettings = webView.getSettings();
|
|
WebSettings webSettings = webView.getSettings();
|
|
- webSettings.setUserAgentString(webSettings.getUserAgentString() + WebConstants.WEB_UA_PARAMS);
|
|
|
|
|
|
+ webSettings.setUserAgentString(webSettings.getUserAgentString() + WebConstants.getAccompanyUA());
|
|
webSettings.setGeolocationDatabasePath(getContext().getApplicationContext().getFilesDir().getPath());
|
|
webSettings.setGeolocationDatabasePath(getContext().getApplicationContext().getFilesDir().getPath());
|
|
webSettings.setGeolocationEnabled(true);
|
|
webSettings.setGeolocationEnabled(true);
|
|
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
|
|
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
|