Commit 1edaad20 by 霍志良

feat:webview拨打电话兼容

parent b35dc9d7
......@@ -36,7 +36,7 @@ ext {
"ydl-platform" : "0.0.40.89",
//第二步 若干
"ydl-webview" : "0.0.38.58",
"ydl-webview" : "0.0.38.61",
"ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.84",
......@@ -119,7 +119,7 @@ ext {
"ydl-platform" : "0.0.40.89",
//第二步 若干
"ydl-webview" : "0.0.38.58",
"ydl-webview" : "0.0.38.61",
"ydl-media" : "0.0.21.42",
"ydl-pay" : "0.0.18.19",
"m-audioim" : "0.0.49.29.84",
......
......@@ -746,6 +746,9 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if (!TextUtils.isEmpty(url) && url.endsWith(".apk")) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (url.startsWith("tel://")){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
loadUrl(setUrlHeightParams(url));
} else {
......@@ -828,7 +831,11 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if (!TextUtils.isEmpty(url) && url.endsWith(".apk")) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
}else if (url.startsWith("tel://")){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
}
else if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
loadUrl(setUrlHeightParams(url));
} else {
if (!YDLRouterManager.Companion.router(url)) {
......
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