diff options
| author | 2015-06-05 14:12:20 -0700 | |
|---|---|---|
| committer | 2015-06-08 18:43:26 +0000 | |
| commit | 0e0942d55d62e820ecdc2c7ec25b02fca169fa79 (patch) | |
| tree | b3fe086c07742dd99cf626f29311901e0eda99cc | |
| parent | b5766468538de200d26012d96019db26bccac5d4 (diff) | |
Hide top and bottom bar while dozing
Bug: 18903923
Change-Id: I7b222f9dd168101084f3ee4cbbe6f9495818eab4
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 4bc317a02f24..39dc4808f51d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -998,6 +998,9 @@ public class NotificationPanelView extends PanelView implements mAfforanceHelper.updatePreviews(); } } + if (keyguardShowing) { + updateDozingVisibilities(false /* animate */); + } resetVerticalPanelPosition(); updateQsState(); } @@ -2109,6 +2112,10 @@ public class NotificationPanelView extends PanelView implements public void setDozing(boolean dozing, boolean animate) { if (dozing == mDozing) return; mDozing = dozing; + updateDozingVisibilities(animate); + } + + private void updateDozingVisibilities(boolean animate) { if (mDozing) { mKeyguardStatusBar.setVisibility(View.INVISIBLE); mKeyguardBottomArea.setVisibility(View.INVISIBLE); |