summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-06-15 20:55:04 -0700
committerSelim Cinek <cinek@google.com>2015-06-15 20:55:04 -0700
commit8f2d767f4ef7ac610264b24a34df6bf5c2c4fa05 (patch)
tree5f83beaa127c3d4995059409fc4475f416e09fdf /packages
parent28a8cf6883478d568f9c85065e94ba39c5c439d4 (diff)
downloadframeworks_base-8f2d767f4ef7ac610264b24a34df6bf5c2c4fa05.zip
frameworks_base-8f2d767f4ef7ac610264b24a34df6bf5c2c4fa05.tar.gz
frameworks_base-8f2d767f4ef7ac610264b24a34df6bf5c2c4fa05.tar.bz2
Fixed a bug where the statusbar was still visible while dozing
Bug: 18903923 Change-Id: I9c0c85e40ff7e7be2e9c4122fe5786de3649426c
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java7
1 files changed, 5 insertions, 2 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 a750572..ca1e3bf 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -1180,7 +1180,9 @@ public class NotificationPanelView extends PanelView implements
} else if (statusBarState == StatusBarState.KEYGUARD
|| statusBarState == StatusBarState.SHADE_LOCKED) {
mKeyguardBottomArea.animate().cancel();
- mKeyguardBottomArea.setVisibility(View.VISIBLE);
+ if (!mDozing) {
+ mKeyguardBottomArea.setVisibility(View.VISIBLE);
+ }
mKeyguardBottomArea.setAlpha(1f);
} else {
mKeyguardBottomArea.animate().cancel();
@@ -1717,7 +1719,8 @@ public class NotificationPanelView extends PanelView implements
float alphaQsExpansion = 1 - Math.min(1, getQsExpansionFraction() * 2);
mKeyguardStatusBar.setAlpha(Math.min(getKeyguardContentsAlpha(), alphaQsExpansion)
* mKeyguardStatusBarAnimateAlpha);
- mKeyguardStatusBar.setVisibility(mKeyguardStatusBar.getAlpha() != 0f ? VISIBLE : INVISIBLE);
+ mKeyguardStatusBar.setVisibility(mKeyguardStatusBar.getAlpha() != 0f
+ && !mDozing ? VISIBLE : INVISIBLE);
setQsTranslation(mQsExpansionHeight);
}