fixed error where jsoup wouldn't show app on refresh

This commit is contained in:
Bryson Steck 2021-05-30 15:58:04 -06:00
parent 3e5d901589
commit 72da66ee0a

View file

@ -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) {