Forced immersive mode results in shifting entire app UI when opening keyboard

Steps

  1. Connect to the device via ADB, or otherwise access an app that allows changing global preferences
  2. Force system into navigation immersive mode
    • adb shell settings put global policy_control immersive.navigation=apps
  3. Open Quasseldroid, connect to core
  4. Tap the message input box to reveal the IME/keyboard
  5. Tap the down arrow to hide the IME/keyboard
  6. Optional: revert back to normal immersive mode
    • adb shell settings put global policy_control null

Expected

Revealing the keyboard reduces the amount of space available to Quasseldroid's UI, shrinking it down.

Actual

Revealing the keyboard shifts the entire Quasseldroid UI upwards, making the ActionBar and upper UI elements inaccessible until the keyboard is hidden.

Details

Tested using Android 10 with Gboard on a Pixel 4 XL.

I suspect this may be a bug with Android itself and not the fault of Quasseldroid. However, other apps (Firefox for Android, non-preview, the Contacts app, YouTube) appear to handle this correctly.