mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Rework Modifier.applyIf.
It was using `Modifier.composed` which is not good for performance and detekt is warning about this.
This commit is contained in:
committed by
Benoit Marty
parent
12b51e381e
commit
000bcb448c
+7
-4
@@ -87,10 +87,13 @@ internal fun RoomListSearchView(
|
||||
) {
|
||||
Column(
|
||||
modifier = modifier
|
||||
.applyIf(state.isSearchActive, ifTrue = {
|
||||
// Disable input interaction to underlying views
|
||||
pointerInput(Unit) {}
|
||||
})
|
||||
.applyIf(
|
||||
condition = state.isSearchActive,
|
||||
ifTrue = {
|
||||
// Disable input interaction to underlying views
|
||||
pointerInput(Unit) {}
|
||||
}
|
||||
)
|
||||
) {
|
||||
if (state.isSearchActive) {
|
||||
RoomListSearchContent(
|
||||
|
||||
Reference in New Issue
Block a user