Merge "Fixed a crash with disapearing views" into lmp-dev

This commit is contained in:
Selim Cinek
2014-09-26 16:50:35 +00:00
committed by Android (Google) Code Review

View File

@@ -256,6 +256,9 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
}
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);