[2.15.0][opt] 文件操作不要放到主线程
This commit is contained in:
@@ -125,7 +125,11 @@ class UpgradeAppNetWorkManager private constructor() {
|
||||
* 删除APK 相关的文件
|
||||
*/
|
||||
private fun deleteApkFile() {
|
||||
UiThreadHandler.post { FileUtils.delete(Config.downLoadPath) }
|
||||
try {
|
||||
FileUtils.delete(Config.downLoadPath)
|
||||
} catch (t: Throwable) {
|
||||
t.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user