mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
When onDismiss is called, the Bottom sheet is already hidden.
This commit is contained in:
committed by
Benoit Marty
parent
14ed730754
commit
d1fb808eed
-2
@@ -118,10 +118,8 @@ fun ActionListView(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun onDismiss() {
|
fun onDismiss() {
|
||||||
sheetState.hide(coroutineScope) {
|
|
||||||
state.eventSink(ActionListEvents.Clear)
|
state.eventSink(ActionListEvents.Clear)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (targetItem != null) {
|
if (targetItem != null) {
|
||||||
ModalBottomSheet(
|
ModalBottomSheet(
|
||||||
|
|||||||
-2
@@ -38,10 +38,8 @@ fun CustomReactionBottomSheet(
|
|||||||
val coroutineScope = rememberCoroutineScope()
|
val coroutineScope = rememberCoroutineScope()
|
||||||
|
|
||||||
fun onDismiss() {
|
fun onDismiss() {
|
||||||
sheetState.hide(coroutineScope) {
|
|
||||||
state.eventSink(CustomReactionEvents.UpdateSelectedEvent(null))
|
state.eventSink(CustomReactionEvents.UpdateSelectedEvent(null))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fun onEmojiSelectedDismiss(emoji: Emoji) {
|
fun onEmojiSelectedDismiss(emoji: Emoji) {
|
||||||
sheetState.hide(coroutineScope) {
|
sheetState.hide(coroutineScope) {
|
||||||
|
|||||||
Reference in New Issue
Block a user