diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e3a4d21ee8..5d3afc75a6 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -30,7 +30,7 @@ + android:windowSoftInputMode="adjustResize"> diff --git a/android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/chat/AidenChatDetailScreen.kt b/android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/chat/AidenChatDetailScreen.kt index 089eb5bf6d..35fd80c62a 100644 --- a/android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/chat/AidenChatDetailScreen.kt +++ b/android/app/src/main/java/sbtbiswas/AidenOnTheGo/features/chat/AidenChatDetailScreen.kt @@ -566,9 +566,12 @@ fun AidenChatDetailScreen( modifier = Modifier .fillMaxWidth() .windowInsetsPadding(WindowInsets.navigationBars) - // MainActivity uses adjustNothing, so this is the one IME owner. - // Insets consumption contributes only the IME delta beyond the - // navigation bar and keeps the whole composer above the keyboard. + // MainActivity is edge-to-edge, so adjustResize only delivers IME + // insets (Android 8-10 need it to report them at all) and never + // resizes the window: this is the one IME owner. The padding follows + // the live insets, so a return from another app with the keyboard + // restored lifts the composer again. Insets consumption contributes + // only the IME delta beyond the navigation bar. .imePadding() .aidenReadableWidth() .zIndex(1f)