fix jar executor crash
This commit is contained in:
parent
73b8f6c98f
commit
b63d80cf96
|
@ -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));
|
addContentView(menu.getLayout(), new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
|
|
||||||
getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(() -> {
|
getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(() -> {
|
||||||
if (((GameMenu) menu).getMenuSetting().isDisableSoftKeyAdjust()) {
|
if (menuType == MenuType.GAME && ((GameMenu) menu).getMenuSetting().isDisableSoftKeyAdjust()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int screenHeight = getWindow().getDecorView().getHeight();
|
int screenHeight = getWindow().getDecorView().getHeight();
|
||||||
|
|
Loading…
Reference in New Issue