Skip to content

Commit

Permalink
Correctly handle IME in landscape orientation on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmpr committed Jun 28, 2024
1 parent d706f6a commit 0e48a41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:windowSoftInputMode="adjustNothing"
android:theme="@style/Theme.InsetsVisualizer">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ internal class MainActivity : ComponentActivity() {
contentAlignment = Alignment.Center,
) {
val insetsData = enabledInsets.map { it.toInsetsData() }
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier
.verticalScroll(rememberScrollState())
.padding(vertical = 24.dp),
) {
insetsData.forEach { data ->
InsetTypeRow(data)
}
Expand Down

0 comments on commit 0e48a41

Please sign in to comment.