From dda86bd5deef74a5f9322632b0cfd56604503582 Mon Sep 17 00:00:00 2001 From: m2049r Date: Fri, 19 Feb 2021 16:32:15 +0100 Subject: [PATCH] fix URI generation (#716) --- app/src/main/java/com/m2049r/xmrwallet/data/BarcodeData.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/data/BarcodeData.java b/app/src/main/java/com/m2049r/xmrwallet/data/BarcodeData.java index eb155f15..3a5cecb9 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/data/BarcodeData.java +++ b/app/src/main/java/com/m2049r/xmrwallet/data/BarcodeData.java @@ -84,7 +84,9 @@ public class BarcodeData { public String getUriString() { if (asset != Crypto.XMR) throw new IllegalStateException("We can only do XMR stuff!"); StringBuilder sb = new StringBuilder(); - sb.append(Crypto.XMR.getUriScheme()).append(address); + sb.append(Crypto.XMR.getUriScheme()) + .append(':') + .append(address); boolean first = true; if ((description != null) && !description.isEmpty()) { sb.append(first ? "?" : "&");