fix: Fullscreen not being toggled when coming from floating window

This commit is contained in:
tomikun committed 2026-05-06 19:09:17 +08:00
1 parent 67d88696b6
commit fea907c33e
2 files changed
+2 -1

No files matched your search

@@ -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();
@@ -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) {