diff options
author | Selim Cinek <cinek@google.com> | 2014-08-25 18:49:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-25 18:49:36 +0000 |
commit | 00c2ff3df9e28c51b03e68a7d31d0bdcebea54af (patch) | |
tree | bbffc3366367169865d3c1228177667781a9c6a0 /packages | |
parent | 962821524c501b1cc9c5a2880369681673cb8d3d (diff) | |
parent | 6aaf217076a947c60945bf4e18f3ea31df53a19a (diff) | |
download | frameworks_base-00c2ff3df9e28c51b03e68a7d31d0bdcebea54af.zip frameworks_base-00c2ff3df9e28c51b03e68a7d31d0bdcebea54af.tar.gz frameworks_base-00c2ff3df9e28c51b03e68a7d31d0bdcebea54af.tar.bz2 |
Merge "Fixed crash when tapping a notification" into lmp-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java index ca290e4..fef4a39 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java @@ -243,9 +243,14 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView int widthHalf = mBackgroundNormal.getWidth()/2; int heightHalf = mBackgroundNormal.getActualHeight()/2; float radius = (float) Math.sqrt(widthHalf*widthHalf + heightHalf*heightHalf); - Animator animator = - ViewAnimationUtils.createCircularReveal(mBackgroundNormal, - widthHalf, heightHalf, 0, radius); + Animator animator; + if (reverse) { + animator = ViewAnimationUtils.createCircularReveal(mBackgroundNormal, + widthHalf, heightHalf, radius, 0); + } else { + animator = ViewAnimationUtils.createCircularReveal(mBackgroundNormal, + widthHalf, heightHalf, 0, radius); + } mBackgroundNormal.setVisibility(View.VISIBLE); Interpolator interpolator; Interpolator alphaInterpolator; @@ -268,7 +273,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } } }); - animator.reverse(); + animator.start(); } else { mBackgroundNormal.setAlpha(0.4f); animator.start(); |