fix(nests): keep chat textfield visible above keyboard on NestFullScreen
Activity used the system default soft-input behavior (pan), so opening the keyboard slid the whole screen up, partially hiding the composer and putting the top of the screen out of reach. Set adjustResize on NestActivity and add consumeWindowInsets + imePadding to the Scaffold body so the column reflows above the IME and the textfield stays in view.
This commit is contained in:
@@ -226,6 +226,7 @@
|
||||
android:launchMode="singleTask"
|
||||
android:exported="false"
|
||||
android:resizeableActivity="true"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:theme="@style/Theme.Amethyst" />
|
||||
|
||||
<activity
|
||||
|
||||
+5
-1
@@ -23,8 +23,10 @@ package com.vitorpamplona.amethyst.ui.screen.loggedIn.nests.room.screen
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.consumeWindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.imePadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.AlertDialog
|
||||
import androidx.compose.material3.Badge
|
||||
@@ -205,7 +207,9 @@ internal fun NestFullScreen(
|
||||
modifier =
|
||||
Modifier
|
||||
.fillMaxSize()
|
||||
.padding(padding),
|
||||
.padding(padding)
|
||||
.consumeWindowInsets(padding)
|
||||
.imePadding(),
|
||||
) {
|
||||
if (summaryExpanded) {
|
||||
RoomSummaryStrip(summary = event.summary())
|
||||
|
||||
Reference in New Issue
Block a user