am 92128144: Merge "Introduce View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY." into klp-dev
* commit '92128144d95e913a6702586cf4f0468bcb90c0c4': Introduce View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY.
This commit is contained in:
@@ -28397,6 +28397,7 @@ package android.view {
|
||||
field public static final int SYSTEM_UI_FLAG_FULLSCREEN = 4; // 0x4
|
||||
field public static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2; // 0x2
|
||||
field public static final int SYSTEM_UI_FLAG_IMMERSIVE = 2048; // 0x800
|
||||
field public static final int SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 4096; // 0x1000
|
||||
field public static final int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 1024; // 0x400
|
||||
field public static final int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 512; // 0x200
|
||||
field public static final int SYSTEM_UI_FLAG_LAYOUT_STABLE = 256; // 0x100
|
||||
|
||||
@@ -2421,6 +2421,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
*/
|
||||
public static final int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 0x00000400;
|
||||
|
||||
/**
|
||||
* Flag for {@link #setSystemUiVisibility(int)}: View would like to remain interactive when
|
||||
* hiding the navigation bar with {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}. If this flag is
|
||||
* not set, {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION} will be force cleared by the system on any
|
||||
* user interaction.
|
||||
* <p>Since this flag is a modifier for {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}, it only
|
||||
* has an effect when used in combination with that flag.</p>
|
||||
*/
|
||||
public static final int SYSTEM_UI_FLAG_IMMERSIVE = 0x00000800;
|
||||
|
||||
/**
|
||||
* Flag for {@link #setSystemUiVisibility(int)}: View would like to remain interactive when
|
||||
* hiding the status bar with {@link #SYSTEM_UI_FLAG_FULLSCREEN} and/or hiding the navigation
|
||||
@@ -2437,7 +2447,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}, it only has an effect when used in combination
|
||||
* with one or both of those flags.</p>
|
||||
*/
|
||||
public static final int SYSTEM_UI_FLAG_IMMERSIVE = 0x00000800;
|
||||
public static final int SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 0x00001000;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #SYSTEM_UI_FLAG_LOW_PROFILE} instead.
|
||||
@@ -16934,7 +16944,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* @param visibility Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE},
|
||||
* {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}, {@link #SYSTEM_UI_FLAG_FULLSCREEN},
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_STABLE}, {@link #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION},
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}, and {@link #SYSTEM_UI_FLAG_IMMERSIVE}.
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}, {@link #SYSTEM_UI_FLAG_IMMERSIVE},
|
||||
* and {@link #SYSTEM_UI_FLAG_IMMERSIVE_STICKY}.
|
||||
*/
|
||||
public void setSystemUiVisibility(int visibility) {
|
||||
if (visibility != mSystemUiVisibility) {
|
||||
@@ -16950,7 +16961,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* @return Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE},
|
||||
* {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}, {@link #SYSTEM_UI_FLAG_FULLSCREEN},
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_STABLE}, {@link #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION},
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}, and {@link #SYSTEM_UI_FLAG_IMMERSIVE}.
|
||||
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}, {@link #SYSTEM_UI_FLAG_IMMERSIVE},
|
||||
* and {@link #SYSTEM_UI_FLAG_IMMERSIVE_STICKY}.
|
||||
*/
|
||||
public int getSystemUiVisibility() {
|
||||
return mSystemUiVisibility;
|
||||
|
||||
Reference in New Issue
Block a user