diff options
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java b/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java index eea8d108..75163865 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java +++ b/main/src/main/java/de/blinkt/openvpn/core/VpnStatus.java @@ -103,12 +103,15 @@ public class VpnStatus { while (message.endsWith(",")) message = message.substring(0, message.length() - 1); - String prefix = c.getString(mLastStateresid) + ":"; String status = mLaststate; if (status.equals("NOPROCESS")) - prefix = ""; + return message; + + String prefix = c.getString(mLastStateresid); if (mLastStateresid == R.string.unknown_state) - prefix += status; + message = status + message; + if (message.length() > 0) + prefix += ": "; return prefix + message; |