mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-07 20:36:05 +00:00
SearchBar handle the back press when it is active, there is no need to handle the event here.
This commit is contained in:
+1
-5
@@ -83,13 +83,9 @@ fun ChangeRolesView(
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
val updatedOnBackPressed by rememberUpdatedState(newValue = onBackPressed)
|
||||
BackHandler {
|
||||
if (state.isSearchActive) {
|
||||
state.eventSink(ChangeRolesEvent.ToggleSearchActive)
|
||||
} else {
|
||||
BackHandler(enabled = !state.isSearchActive) {
|
||||
state.eventSink(ChangeRolesEvent.Exit)
|
||||
}
|
||||
}
|
||||
|
||||
Box(modifier = modifier) {
|
||||
Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user