Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-android
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 71160d66
authored
Oct 09, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
1118fc1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/src/main/java/com/polysoft/nafmii/webview/NativeApi.java
app/src/main/java/com/polysoft/nafmii/webview/NativeApi.java
View file @
71160d6
...
...
@@ -217,6 +217,7 @@ public class NativeApi {
js
.
fail
(
"下载地址错误"
);
return
;
}
final
String
finalUrl
=
URLDecoder
.
decode
(
url
);
String
newName
=
FileUtils
.
getFileName
(
name
);
if
(!
TextUtils
.
isEmpty
(
newName
))
{
name
=
newName
;
...
...
@@ -226,7 +227,7 @@ public class NativeApi {
final
String
fileName
=
name
;
this
.
mActivity
.
runOnUiThread
(()->
{
FragmentManager
manager
=
this
.
handler
.
getFragmentManager
();
DownloadDialog
.
show
(
manager
,
u
rl
,
fileName
);
DownloadDialog
.
show
(
manager
,
finalU
rl
,
fileName
);
});
js
.
success
(
null
);
});
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment