[PM-15643] Show FAB in empty item type filters (#4490)

This commit is contained in:
Patrick Honkonen
2024-12-20 12:52:04 -05:00
committed by GitHub
parent d9c0911238
commit 3be2242431

View File

@@ -1758,8 +1758,8 @@ data class VaultItemListingState(
* Whether or not the add FAB should be shown. * Whether or not the add FAB should be shown.
*/ */
val hasAddItemFabButton: Boolean val hasAddItemFabButton: Boolean
get() = itemListingType.hasFab && get() = itemListingType.hasFab ||
!(viewState is ViewState.NoItems && viewState.shouldShowAddButton) (viewState is ViewState.NoItems && viewState.shouldShowAddButton)
/** /**
* Whether or not this represents a listing screen for autofill. * Whether or not this represents a listing screen for autofill.