1
0
Fork 0

prevented unnecessary multiple insets recalculations and possible input modes re-evaluations, when a virtual numpad key is pressed on Android 15

This commit is contained in:
sspanak 2024-11-29 20:00:09 +02:00 committed by Dimo Karaivanov
parent d645e7f425
commit bedc558ed0

View file

@ -60,7 +60,7 @@ public class TraditionalT9 extends MainViewHandler {
@Override
public void onComputeInsets(Insets outInsets) {
super.onComputeInsets(outInsets);
if (shouldBeVisible() && settings.clearInsets()) {
if (settings.clearInsets() && shouldBeVisible()) {
// otherwise the MainView wouldn't show up on Sonim XP3900
// or it expands the application window past the edge of the screen
outInsets.contentTopInsets = 0;