Skip to content

Commit

Permalink
接入WorkManager实现版本更新功能
Browse files Browse the repository at this point in the history
  • Loading branch information
fmtcias committed May 4, 2020
1 parent 8ee571a commit b660039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/fmt/github/home/work/DownLoadWork.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class DownLoadWork(context: Context, params: WorkerParameters) : CoroutineWorker
}

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

Expand Down

0 comments on commit b660039

Please sign in to comment.