Commit 71160d66 by amateur

1

1 parent 1118fc1a
......@@ -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, url, fileName);
DownloadDialog.show(manager, finalUrl, fileName);
});
js.success(null);
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!