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

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

am 409d6ce3: am ceeac743: am 8d6d6478: am 7f8acb8f: Merge "Fixed a crash with...

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

* commit '409d6ce36a7dec8d4ff1b3ea165b7fcf76bf2a70':
  Fixed a crash with disapearing views
parents 9281a439 4edea3b8
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);