fix jar executor crash

This commit is contained in:
ShirosakiMio 2024-04-16 13:35:35 +08:00
parent 73b8f6c98f
commit b63d80cf96
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class JVMActivity extends FCLActivity implements TextureView.SurfaceTextu
addContentView(menu.getLayout(), new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(() -> {
if (((GameMenu) menu).getMenuSetting().isDisableSoftKeyAdjust()) {
if (menuType == MenuType.GAME && ((GameMenu) menu).getMenuSetting().isDisableSoftKeyAdjust()) {
return;
}
int screenHeight = getWindow().getDecorView().getHeight();