summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/core/OpenVpnService.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-07-01 00:07:52 +0200
committerArne Schwabe <arne@rfc2549.org>2013-07-01 00:07:52 +0200
commit784177121710cbb75ec730babb3a51e9eaf64d82 (patch)
treef30b2ee278fc6b7b5146914f2d0921f2e337335a /src/de/blinkt/openvpn/core/OpenVpnService.java
parent7b20c41be2651e2721fd3b151e4e27f0ee92d656 (diff)
Fix GUI certificate display/parsing a bit
Diffstat (limited to 'src/de/blinkt/openvpn/core/OpenVpnService.java')
-rw-r--r--src/de/blinkt/openvpn/core/OpenVpnService.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/core/OpenVpnService.java b/src/de/blinkt/openvpn/core/OpenVpnService.java
index 0bfc150a..6aacf891 100644
--- a/src/de/blinkt/openvpn/core/OpenVpnService.java
+++ b/src/de/blinkt/openvpn/core/OpenVpnService.java
@@ -155,7 +155,6 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
private int getIconByConnectionStatus(ConnectionStatus level) {
switch (level) {
case LEVEL_CONNECTED:
- case UNKNOWN_LEVEL:
return R.drawable.ic_stat_vpn;
case LEVEL_AUTH_FAILED:
case LEVEL_NONETWORK:
@@ -168,6 +167,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
return R.drawable.ic_stat_vpn_empty_halo;
case LEVEL_VPNPAUSED:
return android.R.drawable.ic_media_pause;
+ case UNKNOWN_LEVEL:
default:
return R.drawable.ic_stat_vpn;
@@ -228,7 +228,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
// Let the configure Button show the Log
Intent intent = new Intent(getBaseContext(),LogWindow.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
- PendingIntent startLW = PendingIntent.getActivity(getApplicationContext(), 0, intent, 0);
+ PendingIntent startLW = PendingIntent.getActivity(this, 0, intent, 0);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
return startLW;
@@ -373,8 +373,8 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
ProfileManager.setConnectedVpnProfile(this, mProfile);
- return START_NOT_STICKY;
- }
+ return START_NOT_STICKY;
+ }
private OpenVPNManagement instantiateOpenVPN3Core() {
return null;