fix: make itemDetails nullable

This commit is contained in:
Harsh Shandilya 2022-11-12 23:46:15 +05:30
parent 5ab5c839b0
commit 4891b980c4
No known key found for this signature in database

View file

@ -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<String>
var itemDetails: ItemDetailsLookup.ItemDetails<String>? = null
suspend fun bind(item: PasswordItem) {
val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "")