diff options
author | cyBerta <richy@cyborgsociety.org> | 2013-12-04 21:40:26 +0100 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-12-04 21:40:26 +0100 |
commit | a651099981ddc9ed5c17a25b2bb618b161cec048 (patch) | |
tree | e7fc5efa9b2ac6848ccf3cca1a8e57cb03e970b8 /src/se/leap/openvpn/OpenVpnService.java | |
parent | 853d2aac3a1b5f532695d8daa0cba2c4787d8aa7 (diff) | |
parent | 6f31f91a82f9822a34ae55c5275130d23be29f4b (diff) |
Merge branch 'develop' of ssh://leap.se:22/bitmask_android into develop
Diffstat (limited to 'src/se/leap/openvpn/OpenVpnService.java')
-rw-r--r-- | src/se/leap/openvpn/OpenVpnService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/se/leap/openvpn/OpenVpnService.java b/src/se/leap/openvpn/OpenVpnService.java index 1ef291df..69dd56f4 100644 --- a/src/se/leap/openvpn/OpenVpnService.java +++ b/src/se/leap/openvpn/OpenVpnService.java @@ -106,7 +106,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac String ns = Context.NOTIFICATION_SERVICE; mNotificationManager = (NotificationManager) getSystemService(ns); int icon; - if (state.equals("NOPROCESS") || state.equals("AUTH_FAILED") || state.equals("NONETWORK")){ + if (state.equals("NOPROCESS") || state.equals("AUTH_FAILED") || state.equals("NONETWORK") || state.equals("EXITING")){ icon = R.drawable.ic_vpn_disconnected; }else{ icon = R.drawable.ic_stat_vpn; @@ -479,7 +479,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac // CONNECTED String ticker = getString(resid); boolean persist = false; - if (("NOPROCESS".equals(state) ) || ("EXIT").equals(state)){ + if (("NOPROCESS".equals(state) ) || ("EXITING").equals(state)){ showNotification(state, getString(R.string.eip_state_not_connected), ticker, false, 0, persist); } else{ |