From 4891b980c445142251fa224da4398ca3da7a1b60 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 12 Nov 2022 23:46:15 +0530 Subject: fix: make `itemDetails` nullable --- .../java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt b/app/src/main/java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt index cb5409c5..9457cc0d 100644 --- a/app/src/main/java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt +++ b/app/src/main/java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt @@ -50,7 +50,7 @@ open class PasswordItemRecyclerAdapter(coroutineScope: CoroutineScope) : private val name: AppCompatTextView = itemView.findViewById(R.id.label) private val childCount: AppCompatTextView = itemView.findViewById(R.id.child_count) private val folderIndicator: AppCompatImageView = itemView.findViewById(R.id.folder_indicator) - lateinit var itemDetails: ItemDetailsLookup.ItemDetails + var itemDetails: ItemDetailsLookup.ItemDetails? = null suspend fun bind(item: PasswordItem) { val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "") -- cgit v1.2.3