调整客服WebView
新增客服url判断链接
This commit is contained in:
@@ -81,9 +81,8 @@ public class CustomerServiceWebViewActivity extends AbsActivity {
|
||||
if (getNavigationBarHeight(mContext) != 0) {
|
||||
params.bottomMargin = getNavigationBarHeight(mContext);
|
||||
}*/
|
||||
AndroidBug5497Workaround.assistActivity(rootView);
|
||||
//mWebView.setLayoutParams(params);
|
||||
mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER);
|
||||
// mWebView.setOverScrollMode(View.OVER_SCROLL_IF_CONTENT_SCROLLS);
|
||||
mWebView.setWebViewClient(new WebViewClient() {
|
||||
@Override
|
||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||
@@ -172,13 +171,12 @@ public class CustomerServiceWebViewActivity extends AbsActivity {
|
||||
String appCachePath = mContext.getCacheDir().getAbsolutePath();
|
||||
// mWebView.getSettings().setAppCachePath(appCachePath);
|
||||
mWebView.getSettings().setAllowFileAccess(true);
|
||||
mWebView.getSettings().setUseWideViewPort(true); // 关键点
|
||||
//mWebView.getSettings().setUseWideViewPort(true); // 关键点
|
||||
mWebView.getSettings().setAllowFileAccess(true); // 允许访问文件
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
mWebView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
|
||||
}
|
||||
mWebView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
|
||||
mWebView.loadUrl(url);
|
||||
AndroidBug5497Workaround.assistActivity(mWebView);
|
||||
}
|
||||
|
||||
private void openImageChooserActivity(ValueCallback<Uri> valueCallback) {
|
||||
|
||||
Reference in New Issue
Block a user