From 30c752dfdd11f9fad083d486d1f2c2bcdfc8ac8f Mon Sep 17 00:00:00 2001 From: adbenitez Date: Mon, 19 Aug 2024 19:01:11 +0200 Subject: [PATCH 1/2] fix: hide copy to clipboard while QR is not ready --- .../org/thoughtcrime/securesms/qr/BackupProviderFragment.java | 1 + src/main/res/layout/backup_provider_fragment.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/org/thoughtcrime/securesms/qr/BackupProviderFragment.java b/src/main/java/org/thoughtcrime/securesms/qr/BackupProviderFragment.java index 8921acd818..12089e9792 100644 --- a/src/main/java/org/thoughtcrime/securesms/qr/BackupProviderFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/qr/BackupProviderFragment.java @@ -86,6 +86,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, try { SVG svg = SVG.getFromString(QrShowFragment.fixSVG(dcBackupProvider.getQrSvg())); qrImageView.setSVG(svg); + qrImageView.setVisibility(View.VISIBLE); } catch (SVGParseException e) { e.printStackTrace(); } diff --git a/src/main/res/layout/backup_provider_fragment.xml b/src/main/res/layout/backup_provider_fragment.xml index c43af61229..54ed364008 100644 --- a/src/main/res/layout/backup_provider_fragment.xml +++ b/src/main/res/layout/backup_provider_fragment.xml @@ -106,6 +106,7 @@ android:layout_height="0dp" android:layout_weight="1" android:layout_marginBottom="16dp" + android:visibility="gone" android:contentDescription="@string/qrscan_title" /> Date: Mon, 19 Aug 2024 19:07:12 +0200 Subject: [PATCH 2/2] use tabs instead of spaces --- src/main/res/layout/backup_provider_fragment.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/res/layout/backup_provider_fragment.xml b/src/main/res/layout/backup_provider_fragment.xml index 54ed364008..a20b1260b2 100644 --- a/src/main/res/layout/backup_provider_fragment.xml +++ b/src/main/res/layout/backup_provider_fragment.xml @@ -106,7 +106,7 @@ android:layout_height="0dp" android:layout_weight="1" android:layout_marginBottom="16dp" - android:visibility="gone" + android:visibility="gone" android:contentDescription="@string/qrscan_title" />