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

Commit e8ab7fec authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Fixes a crash with a renderthread camera animation am: 2c984f16 am: 0dc759ea

am: 9223e86c

Change-Id: I60e00cdd7deee34b8f769b01309ac75cde88e55e
parents f7a9c4e0 9223e86c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -174,7 +174,10 @@ public class KeyguardAffordanceView extends ImageView {

    private void drawBackgroundCircle(Canvas canvas) {
        if (mCircleRadius > 0 || mFinishing) {
            if (mFinishing && mSupportHardware) {
            if (mFinishing && mSupportHardware && mHwCenterX != null) {
                // Our hardware drawing proparties can be null if the finishing started but we have
                // never drawn before. In that case we are not doing a render thread animation
                // anyway, so we need to use the normal drawing.
                DisplayListCanvas displayListCanvas = (DisplayListCanvas) canvas;
                displayListCanvas.drawCircle(mHwCenterX, mHwCenterY, mHwCircleRadius,
                        mHwCirclePaint);