summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/NetworkSateReceiver.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/NetworkSateReceiver.java b/src/de/blinkt/openvpn/NetworkSateReceiver.java
index 0758cf3..6584e0f 100644
--- a/src/de/blinkt/openvpn/NetworkSateReceiver.java
+++ b/src/de/blinkt/openvpn/NetworkSateReceiver.java
@@ -33,8 +33,12 @@ public class NetworkSateReceiver extends BroadcastReceiver {
String subtype = networkInfo.getSubtypeName();
if(subtype==null)
subtype = "";
+ String extrainfo = networkInfo.getExtraInfo();
+ if(extrainfo==null)
+ extrainfo="";
+
netstatestring = String.format("%2$s %4$s to %1$s %3$s",networkInfo.getTypeName(),
- networkInfo.getDetailedState(),networkInfo.getExtraInfo(),subtype );
+ networkInfo.getDetailedState(),extrainfo,subtype );
}
if(networkInfo!=null && networkInfo.getState() == State.CONNECTED) {