setSystemUiVisibility(): fullscreen also for SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN

This mode would fullscreen the app behind the semi-transparent status
bars, but such a mode doesn't exist on desktop Linux, so we just use
normal fullscreen.
This commit is contained in:
Julian Winkler
2025-06-02 22:30:54 +02:00
parent 542e6222b7
commit 3d9099a37f

View File

@@ -1160,7 +1160,9 @@ public class View implements Drawable.Callback {
private native void nativeSetFullscreen(long widget, boolean fullscreen);
public void setSystemUiVisibility(int visibility) {
nativeSetFullscreen(widget, (visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0);
/* LAYOUT_FULLSCREEN mode would make the app window continue behind semi-transparent status bar.
Such a mode doesn't exist on desktop Linux, so we just use normal fullscreen for both modes. */
nativeSetFullscreen(widget, (visibility & (View.SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN)) != 0);
system_ui_visibility = visibility;
}
public int getSystemUiVisibility() {