From b6bb214532ebc45434b0b6205bbcddeb9cc2ead3 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 3 Sep 2024 15:55:52 -0400 Subject: [PATCH] Fixes text field recompositions because of new keyboard actions --- .../amethyst/ui/screen/loggedIn/chatrooms/ChannelScreen.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chatrooms/ChannelScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chatrooms/ChannelScreen.kt index 5f2695e0d..1f74d9119 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chatrooms/ChannelScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/chatrooms/ChannelScreen.kt @@ -501,7 +501,7 @@ fun MyTextField( isError: Boolean = false, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, - keyboardActions: KeyboardActions = KeyboardActions(), + keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, @@ -527,7 +527,6 @@ fun MyTextField( ) { // COPIED FROM TEXT FIELD // The only change is the contentPadding below - val textColor = textStyle.color.takeOrElse { val focused by interactionSource.collectIsFocusedAsState()