Commit c5d56965 by 刘鹏

feat : 去掉webview ssl验证失败弹窗

parent ef7fd967
...@@ -36,7 +36,7 @@ ext { ...@@ -36,7 +36,7 @@ ext {
"ydl-platform" : "0.0.40.79", "ydl-platform" : "0.0.40.79",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.47", "ydl-webview" : "0.0.38.58",
"ydl-media" : "0.0.21.42", "ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19", "ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.58", "m-audioim" : "0.0.49.29.58",
...@@ -118,7 +118,7 @@ ext { ...@@ -118,7 +118,7 @@ ext {
"ydl-platform" : "0.0.40.79", "ydl-platform" : "0.0.40.79",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.47", "ydl-webview" : "0.0.38.58",
"ydl-media" : "0.0.21.42", "ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19", "ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.58", "m-audioim" : "0.0.49.29.58",
......
...@@ -1007,16 +1007,8 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1007,16 +1007,8 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
} }
private void onReceivedSslErrorHandle(SslErrorHandler handler) { private void onReceivedSslErrorHandle(SslErrorHandler handler) {
if (BaseApp.instance.getGlobalConfig().getAppDebug()) { //和天宇沟通,去掉弹窗提示,直接重新验证证书
handler.proceed(); handler.proceed();
return;
}
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.platform_notification_error_ssl_cert_invalid);
builder.setPositiveButton("继续", (dialog, which) -> handler.proceed());
builder.setNegativeButton("取消", (dialog, which) -> handler.cancel());
final AlertDialog dialog = builder.create();
dialog.show();
} }
private void initShareMenu() { private void initShareMenu() {
......
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