Commit d982c589 authored by wanglei's avatar wanglei

========同步垃圾清理的bug========

parent 127e19c3
......@@ -99,14 +99,20 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
private fun scanJunk() {
FileHelps.getFileList({
}, {
// if (mData.isEmpty()) {
//
//
// }
FileHelps.fileList.toList().let { it ->
if (it.isNotEmpty()) {
child3.clear()
child4.clear()
child5.clear()
sizes[0] = 0
sizes[1] = 0
sizes[2] = 0
// child3.clear()
// child4.clear()
// child5.clear()
// sizes[0] = 0
// sizes[1] = 0
// sizes[2] = 0
val a = it.filter { it.isApk() }
val halfSize = if (a.size % 2 == 1) a.size / 2 + 1 else a.size / 2
val firstHalf = a.subList(0, halfSize)
......@@ -143,13 +149,6 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
updateSize(doneIndex = 2)
}
}
}, {
// if (mData.isEmpty()) {
//
//
// }
Log.e("MXL", "scanJunk: " + "没扫到")
})
}
......
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