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

Commit 12fdd7fd authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

Keyguard: Don't circular reveal a non-visible view

This follows the same logic used in the setCirculeRadius method in
this class and avoids performing a circular reveal on a non-visible,
and possibly detached, view.

Change-Id: I238a81433fd78e41192ca099bd68404ae1d0ac6e
TICKET: FEIJ-1501
parent 68eda063
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ public class KeyguardAffordanceView extends ImageView implements Palette.Palette
        });
        animatorToRadius.start();
        setImageAlpha(0, true);
        if (mPreviewView != null) {
        if (mPreviewView != null && mPreviewView.getVisibility() == View.VISIBLE) {
            mPreviewView.setVisibility(View.VISIBLE);
            mPreviewClipper = ViewAnimationUtils.createCircularReveal(
                    mPreviewView, getLeft() + mCenterX, getTop() + mCenterY, mCircleRadius,