Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4edea3b8 authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am ceeac743: am 8d6d6478: am 7f8acb8f: Merge "Fixed a crash with disapearing views" into lmp-dev

* commit 'ceeac743b3e88c9bf027d89bb7ef22e5868487b6':
  Fixed a crash with disapearing views
parents c9d6d5cf b32e372e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);