Hi. After update to targetSdk 35, WindowInsets.isI...
# compose
m
Hi. After update to targetSdk 35, WindowInsets.isImeVisible stopped working. It returns true even if keyboard is hidden and not reflects any of keyboard visibility changes. AndroidMainfest:
Copy code
android:windowSoftInputMode="adjustResize"
Activity xml:
Copy code
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="<http://schemas.android.com/apk/res/android>"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="false">

    <FrameLayout
        android:id="@+id/root_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fitsSystemWindows="false" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
Versions: compose = 1.7.5
z
Best to file a bug, might get lost in this channel
m
I'm not sure if this is a bug or if I'm doing something wrong. New sdk has changes to insets, edge-to-edge display etc.
So I managed to fix it. It needs to set WindowCompat.setDecorFitsSystemWindows(window, false) in activity. Then the screen gets right insets