From 2ee354cf3742e06ce90435d141fd4a73fd7baec1 Mon Sep 17 00:00:00 2001 From: yehunxin <348226830@qq.com> Date: Sun, 20 Jun 2021 17:08:45 +0800 Subject: [PATCH] fix bug --- .../main/java/xyz/fycz/myreader/util/download/DownloadUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/xyz/fycz/myreader/util/download/DownloadUtil.java b/app/src/main/java/xyz/fycz/myreader/util/download/DownloadUtil.java index 69b2fe2..26f1065 100644 --- a/app/src/main/java/xyz/fycz/myreader/util/download/DownloadUtil.java +++ b/app/src/main/java/xyz/fycz/myreader/util/download/DownloadUtil.java @@ -51,7 +51,7 @@ public class DownloadUtil { // 允许漫游时下载 request.setAllowedOverRoaming(true); // 允许下载的网路类型 - request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI); + //request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI); // 设置下载文件保存的路径和文件名 String fileName = URLUtil.guessFileName(url, contentDisposition, mimeType); request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName);