diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-11-12 23:46:15 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-11-12 23:56:12 +0530 |
commit | 4891b980c445142251fa224da4398ca3da7a1b60 (patch) | |
tree | 4fe9f36351ef9d0e30a71a9fabd43347dd9f5157 /app/src | |
parent | 5ab5c839b0b5c951989ed7363169e5d9594e87fe (diff) |
fix: make `itemDetails` nullable
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/app/passwordstore/ui/adapters/PasswordItemRecyclerAdapter.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> + var itemDetails: ItemDetailsLookup.ItemDetails<String>? = null suspend fun bind(item: PasswordItem) { val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "") |