In Android-11, I enabled the Gesture navigation in the Android System Settings and launched a sample application(which contains only one editText on the Screen) using my custom App Launcher. you can see in the below screenshot,

Gesture Navigation means there is no 3-button navigation, similar behavior of iPhones behavior,

img1

You can see in the above image at the keyboard bottom, that there is some additional space available, so in order to remove the space, I used the below code to hide that

 WindowInsetsController wcon = getWindow().getInsetsController();
 wcon.hide(WindowInsets.Type.navigationBars());
 wcon.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);

So, after I used the code, I got the expected behavior as below, in this stage everything is working fine, (the additional area is hided)

img2

But,

Once I moved this from recent apps like below and again moved back from the normal stage, the Bottom keyboard area touch is not working, I highlight using the Red Color,

This only happens, when I launched the app using Custom App

img3

What went wrong with this behavior, Why is the bottom area not working?

0

There are 0 best solutions below