mirror of
https://github.com/bitwarden/android.git
synced 2025-03-15 18:58:59 +03:00
Hide vault listing divider when only one category exists (#1095)
This commit is contained in:
parent
e6efc9c288
commit
770e51f43f
1 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,7 @@ import kotlinx.collections.immutable.toPersistentList
|
|||
/**
|
||||
* Content view for the [VaultItemListingScreen].
|
||||
*/
|
||||
@Suppress("LongMethod")
|
||||
@Suppress("LongMethod", "CyclomaticComplexMethod")
|
||||
@Composable
|
||||
fun VaultItemListingContent(
|
||||
state: VaultItemListingState.ViewState.Content,
|
||||
|
@ -140,7 +140,7 @@ fun VaultItemListingContent(
|
|||
}
|
||||
}
|
||||
|
||||
if (state.displayItemList.isNotEmpty()) {
|
||||
if (state.displayItemList.isNotEmpty() && state.displayFolderList.isNotEmpty()) {
|
||||
item {
|
||||
HorizontalDivider(
|
||||
thickness = 1.dp,
|
||||
|
@ -150,7 +150,9 @@ fun VaultItemListingContent(
|
|||
.padding(all = 16.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (state.displayItemList.isNotEmpty()) {
|
||||
item {
|
||||
BitwardenListHeaderTextWithSupportLabel(
|
||||
label = stringResource(id = R.string.items),
|
||||
|
|
Loading…
Add table
Reference in a new issue