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

Commit f97ce089 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Apply 2 suggestion(s) to 1 file(s)

parent d2b4dac4
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -47,16 +47,18 @@ public class OverlayQRCodeView extends View {
        final int right = left + qrcode.getIntrinsicWidth();
        final int bottom = top + qrcode.getIntrinsicHeight();

        if (left<=0 || top<=0 || right<=0 || bottom<=0)
        if (left <= 0 || top <= 0 || right <= 0 || bottom <= 0) {
            isValid = false;
        else
        } else {
            qrcode.setBounds(left, top, right, bottom);
        }
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        if (isValid)
        if (isValid) {
            qrcode.draw(canvas);
        }
    }
}