diff --git a/res/layout/fragment_network_info.xml b/res/layout/fragment_network_info.xml index b2955a2..8ca96de 100644 --- a/res/layout/fragment_network_info.xml +++ b/res/layout/fragment_network_info.xml @@ -48,4 +48,9 @@ android:layout_height="wrap_content" android:text="0" /> + + diff --git a/src/i2p/bote/android/NetworkInfoFragment.java b/src/i2p/bote/android/NetworkInfoFragment.java index feb0362..4b88d6a 100644 --- a/src/i2p/bote/android/NetworkInfoFragment.java +++ b/src/i2p/bote/android/NetworkInfoFragment.java @@ -44,5 +44,9 @@ public class NetworkInfoFragment extends Fragment { Collection bannedPeers = I2PBote.getInstance().getBannedPeers(); ((TextView) view.findViewById(R.id.banned_peers)).setText( "" + bannedPeers.size()); + + Exception e = I2PBote.getInstance().getConnectError(); + if (e != null) + ((TextView) view.findViewById(R.id.error)).setText(e.toString()); } }