mirror of
https://github.com/bitwarden/android.git
synced 2024-11-27 12:00:19 +03:00
Hide overflow when there are no items (#684)
This commit is contained in:
parent
cf930438c2
commit
13f5467544
1 changed files with 11 additions and 9 deletions
|
@ -114,15 +114,17 @@ fun BitwardenListItem(
|
|||
}
|
||||
}
|
||||
|
||||
IconButton(
|
||||
onClick = { shouldShowDialog = true },
|
||||
) {
|
||||
Icon(
|
||||
painter = painterResource(id = R.drawable.ic_more_horizontal),
|
||||
contentDescription = stringResource(id = R.string.options),
|
||||
tint = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.size(24.dp),
|
||||
)
|
||||
if (selectionDataList.isNotEmpty()) {
|
||||
IconButton(
|
||||
onClick = { shouldShowDialog = true },
|
||||
) {
|
||||
Icon(
|
||||
painter = painterResource(id = R.drawable.ic_more_horizontal),
|
||||
contentDescription = stringResource(id = R.string.options),
|
||||
tint = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.size(24.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue