Messages: update how textcomposer is composed
This commit is contained in:
parent
17e90560e2
commit
1548dd4e6a
2 changed files with 38 additions and 48 deletions
|
|
@ -1,9 +1,7 @@
|
|||
package io.element.android.x.textcomposer
|
||||
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.Dp
|
||||
import androidx.compose.ui.viewinterop.AndroidView
|
||||
import androidx.core.view.isVisible
|
||||
import io.element.android.x.element.resources.R as ElementR
|
||||
|
|
@ -11,12 +9,10 @@ import io.element.android.x.element.resources.R as ElementR
|
|||
@Composable
|
||||
fun TextComposer(
|
||||
callback: Callback,
|
||||
height: Dp,
|
||||
modifier: Modifier = Modifier,
|
||||
){
|
||||
AndroidView(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(height),
|
||||
modifier = modifier,
|
||||
factory = { context ->
|
||||
RichTextComposerLayout(context).apply {
|
||||
// Sets up listeners for View -> Compose communication
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue