android: remove duplicate forward action in multi-select
Some checks failed
CI / test (push) Failing after 2m16s
Some checks failed
CI / test (push) Failing after 2m16s
This commit is contained in:
@@ -330,3 +330,6 @@
|
|||||||
- long-press enters multi-select mode directly.
|
- long-press enters multi-select mode directly.
|
||||||
- Hid single-selection action bars while contextual menu is visible to avoid mixed UX states.
|
- Hid single-selection action bars while contextual menu is visible to avoid mixed UX states.
|
||||||
- Improved multi-select visual affordance with per-message selection indicator circles.
|
- Improved multi-select visual affordance with per-message selection indicator circles.
|
||||||
|
|
||||||
|
### Step 55 - Chat multi-select action cleanup
|
||||||
|
- Removed duplicate forward action in multi-select mode (`Forward selected`), leaving a single clear forward action button.
|
||||||
|
|||||||
@@ -381,21 +381,18 @@ fun ChatScreen(
|
|||||||
Button(onClick = { onToggleReaction("\uD83D\uDE02") }) { Text("\uD83D\uDE02") }
|
Button(onClick = { onToggleReaction("\uD83D\uDE02") }) { Text("\uD83D\uDE02") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Row(
|
if (state.actionState.mode == MessageSelectionMode.SINGLE) {
|
||||||
modifier = Modifier
|
Row(
|
||||||
.fillMaxWidth()
|
modifier = Modifier
|
||||||
.background(MaterialTheme.colorScheme.surfaceVariant.copy(alpha = 0.88f))
|
.fillMaxWidth()
|
||||||
.padding(horizontal = 12.dp, vertical = 6.dp),
|
.background(MaterialTheme.colorScheme.surfaceVariant.copy(alpha = 0.88f))
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
.padding(horizontal = 12.dp, vertical = 6.dp),
|
||||||
) {
|
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
if (state.actionState.mode == MessageSelectionMode.SINGLE && state.selectedMessage != null) {
|
|
||||||
Button(onClick = { onReplySelected(state.selectedMessage) }) { Text("Reply") }
|
|
||||||
}
|
|
||||||
Button(
|
|
||||||
onClick = onForwardSelected,
|
|
||||||
enabled = state.actionState.mode == MessageSelectionMode.MULTI,
|
|
||||||
) {
|
) {
|
||||||
Text(if (state.actionState.mode == MessageSelectionMode.MULTI) "Forward selected" else "Forward")
|
if (state.selectedMessage != null) {
|
||||||
|
Button(onClick = { onReplySelected(state.selectedMessage) }) { Text("Reply") }
|
||||||
|
}
|
||||||
|
Button(onClick = onForwardSelected) { Text("Forward") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user