Commit 10eedcc4 authored by wanglei's avatar wanglei

...

parent e43e7006
...@@ -43,7 +43,9 @@ class CleaningActivity : BaseActivity<ActivityLayoutCleanupingBinding>() { ...@@ -43,7 +43,9 @@ class CleaningActivity : BaseActivity<ActivityLayoutCleanupingBinding>() {
MainScope().launch(Dispatchers.IO) { MainScope().launch(Dispatchers.IO) {
try { try {
listPath.forEach { NewFileUtils.delete(it) } listPath.forEach {
runCatching { NewFileUtils.delete(it) }
}
MediaStoreUtils.updateMediaStore(this@CleaningActivity, listPath) MediaStoreUtils.updateMediaStore(this@CleaningActivity, listPath)
} catch (_: Exception) { } catch (_: Exception) {
} finally { } finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment