Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
1edaad20
Commit
1edaad20
authored
Apr 19, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:webview拨打电话兼容
parent
b35dc9d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
config.gradle
config.gradle
+2
-2
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+8
-1
No files found.
config.gradle
View file @
1edaad20
...
...
@@ -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"
,
...
...
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
1edaad20
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment