mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
BIT-1577 Add the options element ID (#980)
This commit is contained in:
parent
d58e06e00f
commit
7326063f68
3 changed files with 3 additions and 1 deletions
|
@ -40,12 +40,14 @@ import kotlinx.collections.immutable.persistentListOf
|
|||
*/
|
||||
@Composable
|
||||
fun BitwardenOverflowActionItem(
|
||||
modifier: Modifier = Modifier,
|
||||
menuItemDataList: ImmutableList<OverflowMenuItemData> = persistentListOf(),
|
||||
) {
|
||||
if (menuItemDataList.isEmpty()) return
|
||||
var isOverflowMenuVisible by remember { mutableStateOf(false) }
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = modifier,
|
||||
) {
|
||||
IconButton(onClick = { isOverflowMenuVisible = !isOverflowMenuVisible }) {
|
||||
Icon(
|
||||
|
|
|
@ -255,7 +255,6 @@ private fun DefaultAppBar(
|
|||
OverflowMenuItemData(
|
||||
text = stringResource(id = R.string.password_history),
|
||||
onClick = onPasswordHistoryClick,
|
||||
testTag = "Options",
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
@ -94,6 +94,7 @@ fun PasswordHistoryScreen(
|
|||
},
|
||||
),
|
||||
),
|
||||
modifier = Modifier.semantics { testTag = "Options" },
|
||||
)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue