diff options
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/ui/adapters/EntryRecyclerAdapter.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/ui/adapters/EntryRecyclerAdapter.kt b/app/src/main/java/com/zeapo/pwdstore/ui/adapters/EntryRecyclerAdapter.kt index fc9c84bc..9cf477e2 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ui/adapters/EntryRecyclerAdapter.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ui/adapters/EntryRecyclerAdapter.kt @@ -99,10 +99,8 @@ abstract class EntryRecyclerAdapter internal constructor(val values: ArrayList<P !(!showHidden && (pathname.isDirectory && pathname.isHidden)) } ?: emptyArray<File>() val childCount = children.size - if (childCount > 0) { - holder.childCount.visibility = View.VISIBLE - holder.childCount.text = "$childCount" - } + holder.childCount.visibility = if (childCount > 0) View.VISIBLE else View.GONE + holder.childCount.text = "$childCount" } else { holder.typeImage.setImageResource(R.drawable.ic_action_secure_24dp) val parentPath = pass.fullPathToParent.replace("(^/)|(/$)".toRegex(), "") |