Skip to content

Commit

Permalink
increase margin between QR scanner frame and "Scan QR code..." text
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Apr 19, 2024
1 parent c2d0386 commit 8f9384d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/app/attestation/auditor/QROverlay.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class QROverlay(context: Context, attrs: AttributeSet?) : View(context, attrs) {
val textY = verticalHeight + size + frameSideSize * 4

val xPos = textX - (tPaint.measureText(text) / 2).toInt()
val yPos = (textY - (tPaint.descent() + tPaint.ascent()) / 2).toInt()
val yPos = (textY - (tPaint.descent() + tPaint.ascent())).toInt()

canvas.drawText(text, xPos.toFloat(), yPos.toFloat(), tPaint)

Expand Down

0 comments on commit 8f9384d

Please sign in to comment.