From 60cda97b1db3a8995b75f58b01681462c6372600 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Mon, 8 Jun 2026 19:53:44 -0500 Subject: [PATCH] fix(android): stop pairing-code glyph clip + remove duplicate instruction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - The code's bottom was still clipped: the autosize TextView used wrap_content height, which clips glyph bottoms. Give it a fixed 96dp box (autosize 24-64sp, gravity center) so the text is centered inside a bounded box and never clipped. - The "Enter this code…" line appeared twice (static label + statusText). Clear statusText when paired so it shows only once, with the code. --- .../remotedisplay/player/ProvisioningActivity.kt | 4 +++- .../src/main/res/layout/activity_provisioning.xml | 14 ++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/android/app/src/main/java/com/remotedisplay/player/ProvisioningActivity.kt b/android/app/src/main/java/com/remotedisplay/player/ProvisioningActivity.kt index acb53c4..ce80d19 100644 --- a/android/app/src/main/java/com/remotedisplay/player/ProvisioningActivity.kt +++ b/android/app/src/main/java/com/remotedisplay/player/ProvisioningActivity.kt @@ -143,7 +143,9 @@ class ProvisioningActivity : AppCompatActivity() { connectBtn.visibility = View.GONE pairingSection.visibility = View.VISIBLE pairingCodeText.text = wsService?.getPairingCode() ?: "------" - statusText.text = "Enter this code in the dashboard to pair this display" + // The instruction is shown once, inside the pairing section; don't + // duplicate it in statusText. + statusText.text = "" connectBtn.isEnabled = false } } diff --git a/android/app/src/main/res/layout/activity_provisioning.xml b/android/app/src/main/res/layout/activity_provisioning.xml index 9ff7d44..cbb5b4d 100644 --- a/android/app/src/main/res/layout/activity_provisioning.xml +++ b/android/app/src/main/res/layout/activity_provisioning.xml @@ -102,13 +102,14 @@ android:textSize="16sp" android:layout_marginBottom="12dp" /> - +