If I understood correctly, we can replace manifest flag android:windowSoftInputMode="adjustResize"
with insets api.
My theme contains flags:
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:navigationBarColor">?backgroundColorPrimary</item>
<item name="android:windowLightNavigationBar">true</item>
Also I set some flags programmatically:
window.decorView.systemUiVisibility = window.decorView.systemUiVisibility or
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
What should I do to refactor my code?