[2.15.0][opt] 文件操作不要放到主线程

This commit is contained in:
renwj
2023-04-03 10:37:32 +08:00
parent 8639283b78
commit 94bb6c976b

View File

@@ -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 {