PR cleanup #1164
1 changed files with 6 additions and 5 deletions
|
@ -758,11 +758,12 @@ public final class Helper {
|
||||||
|
|
||||||
public static String generateUrl() {
|
public static String generateUrl() {
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size()))).append("-").
|
String sb = "";
|
||||||
append(Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size()))).append("-").
|
sb += Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size())) + "-";
|
||||||
append(Predefined.ANIMALS.get(random.nextInt(Predefined.ANIMALS.size())));
|
sb += Predefined.ADJECTIVES.get(random.nextInt(Predefined.ADJECTIVES.size())) + "-";
|
||||||
return sb.toString().toLowerCase();
|
sb += Predefined.ANIMALS.get(random.nextInt(Predefined.ANIMALS.size()));
|
||||||
|
return sb.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void refreshRecyclerView(RecyclerView rv) {
|
public static void refreshRecyclerView(RecyclerView rv) {
|
||||||
|
|
Loading…
Reference in a new issue