Skip to content

Commit b660039

Browse files
committed
接入WorkManager实现版本更新功能
1 parent 8ee571a commit b660039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/fmt/github/home/work/DownLoadWork.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class DownLoadWork(context: Context, params: WorkerParameters) : CoroutineWorker
117117
}
118118

119119
private fun startDown(inputStream: InputStream, totalLength: Long) {
120-
val downLoadDir = AppContext.getExternalFilesDir(DOWN_LOAD_DIR)//Android Q文件存储机制修改成了沙盒模式
120+
val downLoadDir = AppContext.getExternalFilesDir(DOWN_LOAD_DIR)//Android Q文件存储机制推荐使用沙盒模式
121121
val downLoadFile = File(downLoadDir, DOWN_LOAD_NAME)
122122
val outputStream = FileOutputStream(downLoadFile)
123123

0 commit comments

Comments
 (0)