From b202760cdc2b443fd07dcee593ed7f3e09d6b77b Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 4 May 2021 23:31:34 -0600 Subject: watched friend codes work --- .../java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java') diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java b/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java index 46f35d8..3799180 100644 --- a/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java +++ b/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomData.java @@ -16,10 +16,10 @@ public class RoomData { public RoomData (ArrayList players, String playerLink, String friendCode) { this.friendCode = friendCode; - this.playerLink = getPlayerLink(); + getPlayerLink(); Document doc = null; - if (playerLink == null) { + if (this.playerLink == null) { System.out.println("The player link is null for some reason"); } else { @@ -87,7 +87,7 @@ public class RoomData { } } - public String getPlayerLink() { + public void getPlayerLink() { try { Document doc = null; @@ -109,7 +109,7 @@ public class RoomData { System.out.println("Found friend code"); playerLink = data.split("\"")[3]; System.out.println("Player link: " + playerLink); - + break; } } } @@ -118,7 +118,6 @@ public class RoomData { } catch (Exception e) { e.printStackTrace(); } - return playerLink; } public ArrayList getPlayers() { return players; } -- cgit v1.2.3