diff options
| author | 2019-02-27 15:46:50 +0000 | |
|---|---|---|
| committer | 2019-02-27 15:46:50 +0000 | |
| commit | ab864c6dd358cb2b54f85ed31603871251e0086e (patch) | |
| tree | 647f1d87962a1a3aabed2a6cb666c0473315b084 | |
| parent | 68463825b636a11fe93f297d0c1bcabcd6873819 (diff) | |
| parent | 4855f45cec21ae6f352123bbaa57e0f6ae04c7af (diff) | |
Merge "Make status bar full screen when assist UI is present"
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java index e1a77b00f3ca..ce69a489737a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java @@ -246,7 +246,7 @@ public class StatusBarWindowController implements Callback, Dumpable, Configurat private boolean isExpanded(State state) { return !state.forceCollapsed && (state.isKeyguardShowingAndNotOccluded() || state.panelVisible || state.keyguardFadingAway || state.bouncerShowing - || state.headsUpShowing || state.bubblesShowing + || state.headsUpShowing || state.bubblesShowing || state.assistShowing || state.scrimsVisibility != ScrimController.VISIBILITY_FULLY_TRANSPARENT); } @@ -490,6 +490,21 @@ public class StatusBarWindowController implements Callback, Dumpable, Configurat } /** + * Sets whether assist UI is showing on the screen. + */ + public void setAssistShowing(boolean assistShowing) { + mCurrentState.assistShowing = assistShowing; + apply(mCurrentState); + } + + /** + * The assist UI showing state for the status bar. + */ + public boolean getAssistShowing() { + return mCurrentState.assistShowing; + } + + /** * Sets if there is a bubble being expanded on the screen. */ public void setBubbleExpanded(boolean bubbleExpanded) { @@ -558,6 +573,7 @@ public class StatusBarWindowController implements Callback, Dumpable, Configurat boolean notTouchable; boolean bubblesShowing; boolean bubbleExpanded; + boolean assistShowing; /** * The {@link StatusBar} state from the status bar. |