diff --git a/app/src/main/java/io/lbry/browser/utils/Helper.java b/app/src/main/java/io/lbry/browser/utils/Helper.java index c6b75719..f3d3ad44 100644 --- a/app/src/main/java/io/lbry/browser/utils/Helper.java +++ b/app/src/main/java/io/lbry/browser/utils/Helper.java @@ -758,11 +758,12 @@ public final class Helper { public static String generateUrl() { Random random = new Random(); - StringBuilder sb = new StringBuilder(); - sb.append(Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size()))).append("-"). - append(Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size()))).append("-"). - append(Predefined.ANIMALS.get(random.nextInt(Predefined.ANIMALS.size()))); - return sb.toString().toLowerCase(); + + String sb = ""; + sb += Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size())) + "-"; + sb += Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size())) + "-"; + sb += Predefined.ANIMALS.get(random.nextInt(Predefined.ANIMALS.size())); + return sb.toLowerCase(); } public static void refreshRecyclerView(RecyclerView rv) {