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

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

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

* commit '8d6d64789ae83a5a8e2ca96196145c9128108c82':
  Fixed a crash with disapearing views
parents 24bea654 8f37f2b8
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);