android: clear message selection when context sheet is dismissed
Some checks failed
Android CI / android (push) Failing after 5m7s
Android Release / release (push) Failing after 5m31s
CI / test (push) Failing after 2m49s

This commit is contained in:
Codex
2026-03-10 09:15:11 +03:00
parent f7b9753c2e
commit 7f1b0e09c5
2 changed files with 9 additions and 1 deletions

View File

@@ -1004,3 +1004,8 @@
- Fix applied:
- introduced dedicated app theme `Theme.Messenger` with parent `Theme.AppCompat.DayNight.NoActionBar`,
- switched `AndroidManifest.xml` application theme to `@style/Theme.Messenger`.
### Step 136 - Message context menu dismiss selection fix
- Fixed chat bug after closing message context menu by tapping outside:
- selection state now clears on `ModalBottomSheet` dismiss,
- prevents stale single-selection action bar from appearing after menu close.

View File

@@ -745,7 +745,10 @@ fun ChatScreen(
val selected = actionMenuMessage
if (selected != null) {
ModalBottomSheet(
onDismissRequest = { actionMenuMessage = null },
onDismissRequest = {
actionMenuMessage = null
onClearSelection()
},
sheetState = actionSheetState,
) {
Column(