fix: Fullscreen not being toggled when coming from floating window

This commit is contained in:
tomikun
2026-04-27 18:38:22 +08:00
parent 67d88696b6
commit fea907c33e
2 changed files with 2 additions and 1 deletions

View File

@@ -363,6 +363,7 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
mControlLayout.requestLayout();
mControlLayout.post(()->{
// Child of mControlLayout, so refreshing size here is correct
Tools.setFullscreen(this, setFullscreen());
minecraftGLView.refreshSize();
Tools.updateWindowSize(this);
mControlLayout.refreshControlButtonPositions();

View File

@@ -126,7 +126,7 @@ void gl_swap_surface(gl_render_window_t* bundle) {
}
if (bundle->surface != NULL) eglDestroySurface_p(g_EglDisplay, bundle->surface);
} else {
LOGW("Native surface dimensions (%d x %d) are invalid! Assuming android has already released window.\n",
LOGW("Native surface dimensions (%d x %d) are invalid! Assuming given nativeSurface is bad.\n",
nativeWindowWidth, nativeWindowHeight);
}
if(bundle->newNativeSurface != NULL) {