mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-06-11 02:34:29 -04:00
fix: Fullscreen not being toggled when coming from floating window
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user