Commit 32ebc159 authored by wanglei's avatar wanglei

...

parent f347e4f7
...@@ -24,7 +24,7 @@ class JunkExpandAdapter(private val chooseAction: (size: Long) -> Unit) : Expand ...@@ -24,7 +24,7 @@ class JunkExpandAdapter(private val chooseAction: (size: Long) -> Unit) : Expand
private val parentBeanList by lazy { private val parentBeanList by lazy {
mutableListOf( mutableListOf(
ParentBean( ParentBean(
title = "Empty folder", title = "Residual file",
isParentSelected = true, isParentSelected = true,
expanded = false expanded = false
), ),
...@@ -84,7 +84,7 @@ class JunkExpandAdapter(private val chooseAction: (size: Long) -> Unit) : Expand ...@@ -84,7 +84,7 @@ class JunkExpandAdapter(private val chooseAction: (size: Long) -> Unit) : Expand
} else { } else {
viewHolder.binding.idXiala.setImageResource(R.mipmap.shouqi) viewHolder.binding.idXiala.setImageResource(R.mipmap.shouqi)
} }
if (parentBean.title == "Empty folder") { if (parentBean.title == "Residual file") {
viewHolder.binding.idTypeSize.text = parentBean.childItem.size.toString() + " items" viewHolder.binding.idTypeSize.text = parentBean.childItem.size.toString() + " items"
} else { } else {
viewHolder.binding.idTypeSize.text = parentBean.parentSize.toFormatSize(1) viewHolder.binding.idTypeSize.text = parentBean.parentSize.toFormatSize(1)
......
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