View.setSystemUiVisibility(): implement fullscreen

For now we only allow fullscreen for maximized windows
This commit is contained in:
Julian Winkler
2024-10-31 16:50:15 +01:00
parent 0bec10bb26
commit 6068ac2eb8
3 changed files with 25 additions and 0 deletions

View File

@@ -1038,7 +1038,10 @@ public class View implements Drawable.Callback {
return true;
}
private native void nativeSetFullscreen(long widget, boolean fullscreen);
public void setSystemUiVisibility(int visibility) {
nativeSetFullscreen(widget, (visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0);
system_ui_visibility = visibility;
}
public int getSystemUiVisibility() {