mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +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
+1
-3
@@ -118,9 +118,7 @@ fun ActionListView(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun onDismiss() {
|
fun onDismiss() {
|
||||||
sheetState.hide(coroutineScope) {
|
state.eventSink(ActionListEvents.Clear)
|
||||||
state.eventSink(ActionListEvents.Clear)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetItem != null) {
|
if (targetItem != null) {
|
||||||
|
|||||||
+1
-3
@@ -38,9 +38,7 @@ 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user