commit | f4d7fc3687e794c54ffc93b9cc7374460074e12e | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Fri Sep 26 17:15:34 2014 +0200 |
committer | Selim Cinek <cinek@google.com> | Fri Sep 26 17:15:34 2014 +0200 |
tree | 15ea027e4b0b351010bb56d19d550bf0fda61d40 | |
parent | 34cf5c4bfc7c4918b8155c47eb905782902016d6 [diff] |
Fixed a crash with disapearing views Bug: 17660994 Change-Id: Id957bc65f0787860019c491559c4bca242ea620e
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java index c869ba4..0d5ebe7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
@@ -256,6 +256,9 @@ } private void startActivateAnimation(boolean reverse) { + if (!isAttachedToWindow()) { + return; + } int widthHalf = mBackgroundNormal.getWidth()/2; int heightHalf = mBackgroundNormal.getActualHeight()/2; float radius = (float) Math.sqrt(widthHalf*widthHalf + heightHalf*heightHalf);