mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 15:25:39 +00:00
fix: make itemDetails
nullable
This commit is contained in:
@@ -50,7 +50,7 @@ open class PasswordItemRecyclerAdapter(coroutineScope: CoroutineScope) :
|
|||||||
private val name: AppCompatTextView = itemView.findViewById(R.id.label)
|
private val name: AppCompatTextView = itemView.findViewById(R.id.label)
|
||||||
private val childCount: AppCompatTextView = itemView.findViewById(R.id.child_count)
|
private val childCount: AppCompatTextView = itemView.findViewById(R.id.child_count)
|
||||||
private val folderIndicator: AppCompatImageView = itemView.findViewById(R.id.folder_indicator)
|
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) {
|
suspend fun bind(item: PasswordItem) {
|
||||||
val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "")
|
val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "")
|
||||||
|
Reference in New Issue
Block a user