1
mirror of https://github.com/m2049r/xmrwallet synced 2025-07-30 01:40:45 +02:00

fix URI generation ()

This commit is contained in:
m2049r
2021-02-19 16:32:15 +01:00
committed by GitHub
parent a19ad7fd52
commit dda86bd5de

@ -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 ? "?" : "&");