diff options
author | Selim Cinek <cinek@google.com> | 2014-10-09 23:05:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-10-09 23:05:04 +0000 |
commit | f9df9dd845ba1d1b14b450bd9df654243921381f (patch) | |
tree | 2d91a627e034371ff03d6cc167446757ccc6dccb /packages/SystemUI | |
parent | 2aa1d18e3acd269ed7a5f5a4843d447735f0676c (diff) | |
parent | 59d9723dd77108b83d4b0b16ca3fafdc6a66f64b (diff) | |
download | frameworks_base-f9df9dd845ba1d1b14b450bd9df654243921381f.zip frameworks_base-f9df9dd845ba1d1b14b450bd9df654243921381f.tar.gz frameworks_base-f9df9dd845ba1d1b14b450bd9df654243921381f.tar.bz2 |
Merge "Fixed an issue where the notification could become transparent" into lmp-dev
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java | 9 |
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); |