summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2016-02-23 00:55:37 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-02-23 00:55:38 +0000
commitdd9a8017e4934007fc5338e2c68b199cd6220001 (patch)
treec772d2cd592009ba71975e7810a45cec30be2a54
parentf1c6371587ba9349068092971f1fdf85596d0461 (diff)
parent0934bd9942c6fe848faf9f007546a7ba0ce4978e (diff)
Merge "Fixed a bug where the dozemode was incorrectly applied" into nyc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
index 647f0bfd0e26..bc859229b451 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
@@ -523,7 +523,13 @@ public class NotificationContentView extends FrameLayout {
}
public void setDark(boolean dark, boolean fade, long delay) {
- if (mDark == dark || mContractedChild == null) return;
+ setDark(dark, fade, delay, false /* force */);
+ }
+
+ public void setDark(boolean dark, boolean fade, long delay, boolean force) {
+ if ((!force && mDark == dark) || mContractedChild == null) {
+ return;
+ }
mDark = dark;
dark = dark && !mShowingLegacyBackground;
if (mVisibleType == VISIBLE_TYPE_CONTRACTED || !dark) {
@@ -571,7 +577,6 @@ public class NotificationContentView extends FrameLayout {
selectLayout(false /* animate */, true /* force */);
if (mContractedChild != null) {
mContractedWrapper.notifyContentUpdated(entry.notification);
- mContractedWrapper.setDark(mDark, false /* animate */, 0 /* delay */);
}
if (mExpandedChild != null) {
mExpandedWrapper.notifyContentUpdated(entry.notification);
@@ -579,6 +584,7 @@ public class NotificationContentView extends FrameLayout {
if (mHeadsUpChild != null) {
mHeadsUpWrapper.notifyContentUpdated(entry.notification);
}
+ setDark(mDark, false /* animate */, 0 /* delay */, true /* force */);
}
private void updateSingleLineView() {