You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
View.setSystemUiVisibility(): implement fullscreen
For now we only allow fullscreen for maximized windows
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user