From 8833649c3468fce9cc40a0e94371049093c5dd7d Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 5 Dec 2013 01:45:51 +0100 Subject: Show location in openvpn notification message (Feature #4665) --- src/se/leap/openvpn/OpenVpnService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/se') diff --git a/src/se/leap/openvpn/OpenVpnService.java b/src/se/leap/openvpn/OpenVpnService.java index 69dd56f4..f5b932f2 100644 --- a/src/se/leap/openvpn/OpenVpnService.java +++ b/src/se/leap/openvpn/OpenVpnService.java @@ -114,7 +114,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac android.app.Notification.Builder nbuilder = new Notification.Builder(this); - nbuilder.setContentTitle(getString(R.string.notifcation_title,mProfile.mName)); + nbuilder.setContentTitle(getString(R.string.notifcation_title,mProfile.mLocation)); nbuilder.setContentText(msg); nbuilder.setOnlyAlertOnce(true); nbuilder.setOngoing(persistant); @@ -481,6 +481,9 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac boolean persist = false; if (("NOPROCESS".equals(state) ) || ("EXITING").equals(state)){ showNotification(state, getString(R.string.eip_state_not_connected), ticker, false, 0, persist); + } + else if (state.equals("GET_CONFIG")){ + } else{ persist = true; -- cgit v1.2.3