Skip to content

Commit

Permalink
[5304] enableEdgeToEdge hides EditText/TextField (#5386)
Browse files Browse the repository at this point in the history
* [5304] enableEdgeToEdge hides EditText/TextField

* add CHANGELOG

* code clean up
  • Loading branch information
kanat authored Aug 30, 2024
1 parent 7852d8d commit d7cc860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
### ⬆️ Improved
- `DefaultMentionSuggestionItemCenterContent` component uses `user.id` if `user.name` is empty. [#5384](https://github.com/GetStream/stream-chat-android/pull/5384)
- Added `showFileSize` parameter to `StreamAttachmentFactories.defaultFactories` to control file size UI visibility. [#5383](https://github.com/GetStream/stream-chat-android/pull/5383)
- Made `MessagesScreen` edge-to-edge friendly. [#5386](https://github.com/GetStream/stream-chat-android/pull/5386)

### ✅ Added
- Add `PollDialogs` component used to show poll dialogs. [#5370](https://github.com/GetStream/stream-chat-android/pull/5370)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.ime
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBarsPadding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
Expand Down Expand Up @@ -202,6 +203,7 @@ public fun MessagesScreen(
Box(
modifier = Modifier
.fillMaxSize()
.systemBarsPadding()
.testTag("Stream_MessagesScreen"),
) {
Scaffold(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
Expand Down Expand Up @@ -217,7 +218,7 @@ public fun MessageComposer(
val messageComposerState by viewModel.messageComposerState.collectAsState()

MessageComposer(
modifier = modifier,
modifier = modifier.imePadding(),
onSendMessage = { text, attachments ->
val messageWithData = viewModel.buildNewMessage(text, attachments)

Expand Down

0 comments on commit d7cc860

Please sign in to comment.