DO NOT MERGE
cherry pick Change-Id: I67ef29f8ccc7b4a754ebb24efd96e9821e3d8662 docs: add accepted values for setting status bar visibility Change-Id: I255dcd62b71c1b4ca40187b395abce8d6836c249
This commit is contained in:
@@ -11251,6 +11251,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Request that the visibility of the status bar be changed.
|
* Request that the visibility of the status bar be changed.
|
||||||
|
* @param visibility Either {@link #STATUS_BAR_VISIBLE} or {@link #STATUS_BAR_HIDDEN}.
|
||||||
*/
|
*/
|
||||||
public void setSystemUiVisibility(int visibility) {
|
public void setSystemUiVisibility(int visibility) {
|
||||||
if (visibility != mSystemUiVisibility) {
|
if (visibility != mSystemUiVisibility) {
|
||||||
@@ -11263,11 +11264,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the status bar visibility that this view has requested.
|
* Returns the status bar visibility that this view has requested.
|
||||||
|
* @return Either {@link #STATUS_BAR_VISIBLE} or {@link #STATUS_BAR_HIDDEN}.
|
||||||
*/
|
*/
|
||||||
public int getSystemUiVisibility() {
|
public int getSystemUiVisibility() {
|
||||||
return mSystemUiVisibility;
|
return mSystemUiVisibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a listener to receive callbacks when the visibility of the system bar changes.
|
||||||
|
* @param l The {@link OnSystemUiVisibilityChangeListener} to receive callbacks.
|
||||||
|
*/
|
||||||
public void setOnSystemUiVisibilityChangeListener(OnSystemUiVisibilityChangeListener l) {
|
public void setOnSystemUiVisibilityChangeListener(OnSystemUiVisibilityChangeListener l) {
|
||||||
mOnSystemUiVisibilityChangeListener = l;
|
mOnSystemUiVisibilityChangeListener = l;
|
||||||
if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
|
if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user