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
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:
@@ -1160,7 +1160,9 @@ public class View implements Drawable.Callback {
|
|||||||
private native void nativeSetFullscreen(long widget, boolean fullscreen);
|
private native void nativeSetFullscreen(long widget, boolean fullscreen);
|
||||||
|
|
||||||
public void setSystemUiVisibility(int visibility) {
|
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;
|
system_ui_visibility = visibility;
|
||||||
}
|
}
|
||||||
public int getSystemUiVisibility() {
|
public int getSystemUiVisibility() {
|
||||||
|
|||||||
Reference in New Issue
Block a user