mirror of
https://github.com/bitwarden/android.git
synced 2026-05-07 11:29:37 -05:00
Hide overflow when there are no items (#684)
This commit is contained in:
committed by
Álison Fernandes
parent
cf930438c2
commit
13f5467544
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user