aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-05-30 15:58:04 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-05-30 15:58:04 -0600
commit72da66ee0a0c4458f779581245d9ee3d9500f4cb (patch)
treec74b11c1d65488a8a87fa85f44f4cb5d74bc5524 /app/src/main
parent3e5d90158996b919b6661c3cb9c9fc18ac951bfc (diff)
downloadwiimmfi-watcher-72da66ee0a0c4458f779581245d9ee3d9500f4cb.tar
wiimmfi-watcher-72da66ee0a0c4458f779581245d9ee3d9500f4cb.tar.gz
wiimmfi-watcher-72da66ee0a0c4458f779581245d9ee3d9500f4cb.tar.bz2
fixed error where jsoup wouldn't show app on refresh
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java
index f22bf1c..fc144aa 100644
--- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java
@@ -73,7 +73,7 @@ public class RoomFragment extends Fragment {
toolbar.setNavigationIcon(null);
}
if (newRoomData.error instanceof java.net.SocketTimeoutException || newRoomData.error instanceof java.net.UnknownHostException) {
- headerTextView.setText(R.string.jsoup_error);
+ headerTextView.setText(getResources().getString(R.string.jsoup_error, roomData.error));
toolbar.setNavigationIcon(null);
}
if (roomData.error == null && header != null) {