aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-05-04 23:31:34 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-05-04 23:31:34 -0600
commitb202760cdc2b443fd07dcee593ed7f3e09d6b77b (patch)
tree959051ae90e51212590db5b513e4de93261136cf /app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java
parent50dfc57c61a01dc20a42129246b458bf90e26154 (diff)
downloadwiimmfi-watcher-b202760cdc2b443fd07dcee593ed7f3e09d6b77b.tar
wiimmfi-watcher-b202760cdc2b443fd07dcee593ed7f3e09d6b77b.tar.gz
wiimmfi-watcher-b202760cdc2b443fd07dcee593ed7f3e09d6b77b.tar.bz2
watched friend codes work
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java')
-rw-r--r--app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java b/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java
index 9592186..e72e38a 100644
--- a/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java
+++ b/app/src/main/java/com/example/wiimmterfaceandroid/wiimmfi/RoomFragment.java
@@ -36,7 +36,7 @@ public class RoomFragment extends Fragment {
super.onViewCreated(view, savedInstanceState);
FloatingActionButton refreshButton = view.findViewById(R.id.refresh_button);
TextView headerTextView = view.findViewById(R.id.room_header_text);
- if (header == null || playerLink == null || players == null) {
+ if (players == null) {
header = "This player is not online, not inside a room or does not exist. Click the refresh button to try again, or click on the back button to enter a different friend code.";
}
headerTextView.setText(header);
@@ -51,10 +51,10 @@ public class RoomFragment extends Fragment {
roomData = roomData.refresh();
RoomData newRoomData = roomData.refresh();
players = roomData.getPlayers();
- playerLink = roomData.getPlayerLink();
- String otherPlayerLink = newRoomData.getPlayerLink();
+// playerLink = roomData.getPlayerLink();
+// String otherPlayerLink = newRoomData.getPlayerLink();
header = newRoomData.getRoomHeader();
- if (playerLink == null) {
+ if (header == null) {
header = "This player is not online, not inside a room or does not exist. Click the refresh button to try again, or click on the back button to enter a different friend code.";
}
headerTextView.setText(header);