mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
parent
ca8a49d862
commit
f9424f2abc
2 changed files with 9 additions and 1 deletions
|
|
@ -360,10 +360,17 @@ private fun QuickChatRow(
|
|||
modifier: Modifier = Modifier,
|
||||
onClick: (QuickChatAction) -> Unit
|
||||
) {
|
||||
val alertAction = QuickChatAction(
|
||||
name = "🔔",
|
||||
message = "🔔 ${stringResource(R.string.alert_bell_text)} \u0007",
|
||||
mode = QuickChatAction.Mode.Append,
|
||||
position = -1
|
||||
)
|
||||
|
||||
LazyRow(
|
||||
modifier = modifier,
|
||||
) {
|
||||
items(actions, key = { it.uuid }) { action ->
|
||||
items(listOf(alertAction) + actions, key = { it.uuid }) { action ->
|
||||
Button(
|
||||
onClick = { onClick(action) },
|
||||
modifier = Modifier.padding(horizontal = 4.dp),
|
||||
|
|
|
|||
|
|
@ -311,4 +311,5 @@
|
|||
<string name="not_selected">Not Selected</string>
|
||||
<string name="unknown_age">Unknown Age</string>
|
||||
<string name="copy">Copy</string>
|
||||
<string name="alert_bell_text">Alert Bell Character!</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue