summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-10-09 15:54:40 -0700
committerSelim Cinek <cinek@google.com>2014-10-09 15:54:40 -0700
commit59d9723dd77108b83d4b0b16ca3fafdc6a66f64b (patch)
tree40accd24f97b445bced8eb139cf66558f0218409 /packages
parent1e2e4307ff381e5cb9d8d19eb6a1aca763ba9415 (diff)
downloadframeworks_base-59d9723dd77108b83d4b0b16ca3fafdc6a66f64b.zip
frameworks_base-59d9723dd77108b83d4b0b16ca3fafdc6a66f64b.tar.gz
frameworks_base-59d9723dd77108b83d4b0b16ca3fafdc6a66f64b.tar.bz2
Fixed an issue where the notification could become transparent
Bug: 17668881 Change-Id: If8389084c7696bb8d3c0155f1262ec1fe7973c44
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
index 0d5ebe7..e4faa6a 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
@@ -403,6 +403,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
}
private void fadeBackground() {
+ mBackgroundNormal.animate().cancel();
if (mDimmed) {
mBackgroundDimmed.setVisibility(View.VISIBLE);
} else {
@@ -446,6 +447,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
mBackgroundDimmed.setVisibility(View.VISIBLE);
mBackgroundNormal.setVisibility(View.INVISIBLE);
} else {
+ cancelFadeAnimations();
mBackgroundDimmed.setVisibility(View.INVISIBLE);
mBackgroundNormal.setVisibility(View.VISIBLE);
mBackgroundNormal.setAlpha(1f);
@@ -453,6 +455,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
}
}
+ private void cancelFadeAnimations() {
+ if (mBackgroundAnimator != null) {
+ mBackgroundAnimator.cancel();
+ }
+ mBackgroundNormal.animate().cancel();
+ }
+
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);