From 72da66ee0a0c4458f779581245d9ee3d9500f4cb Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 30 May 2021 15:58:04 -0600 Subject: fixed error where jsoup wouldn't show app on refresh --- .../main/java/me/brysonsteck/wiimmfiwatcher/wiimmfi/RoomFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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) { -- cgit v1.2.3