From 9ac216504dbe48cf3fbc961c2fc634c2f34b5041 Mon Sep 17 00:00:00 2001 From: Javi Rueda Date: Mon, 15 Mar 2021 16:22:18 +0100 Subject: [PATCH] Use ':' as separator for LBRY.TV sharing links (#1169) --- app/src/main/java/io/lbry/browser/utils/LbryUri.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/utils/LbryUri.java b/app/src/main/java/io/lbry/browser/utils/LbryUri.java index 60a12499..d903cdb5 100644 --- a/app/src/main/java/io/lbry/browser/utils/LbryUri.java +++ b/app/src/main/java/io/lbry/browser/utils/LbryUri.java @@ -223,7 +223,10 @@ public class LbryUri { String secondaryClaimId = !Helper.isNullOrEmpty(secondaryClaimName) ? streamClaimId : null; if (!Helper.isNullOrEmpty(primaryClaimId)) { - sb.append('#').append(primaryClaimId); + if (protocol.equals(LBRY_TV_BASE_URL)) + sb.append(':').append(primaryClaimId); + else + sb.append('#').append(primaryClaimId); } else if (primaryClaimSequence > 0) { sb.append(':').append(primaryClaimSequence); } else if (primaryBidPosition > 0) { @@ -235,7 +238,10 @@ public class LbryUri { } if (!Helper.isNullOrEmpty(secondaryClaimId)) { - sb.append('#').append(secondaryClaimId); + if (protocol.equals(LBRY_TV_BASE_URL)) + sb.append(':').append(secondaryClaimId); + else + sb.append('#').append(secondaryClaimId); } else if (secondaryClaimSequence > 0) { sb.append(':').append(secondaryClaimSequence); } else if (secondaryBidPosition > 0) {