summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/OpenVpnService.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-12-18 11:11:47 +0100
committerArne Schwabe <arne@rfc2549.org>2012-12-18 11:11:47 +0100
commita01e771f678fbcfff3b7a38f42ce392102165fcc (patch)
tree7b29bc4f601e40eef74e51bfb4ded45e2be4d927 /src/de/blinkt/openvpn/OpenVpnService.java
parentfd52a72467252aa449f1c8081ed02fc064a65729 (diff)
Fix a few warnings and one bug when importing a file with a pkcs12 which cannot be read
--HG-- extra : rebase_source : d11215373582cb1a656f7cae9bf3642b34c3a2c9
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnService.java')
-rw-r--r--src/de/blinkt/openvpn/OpenVpnService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java
index 122549a5..603f86ce 100644
--- a/src/de/blinkt/openvpn/OpenVpnService.java
+++ b/src/de/blinkt/openvpn/OpenVpnService.java
@@ -19,6 +19,7 @@ package de.blinkt.openvpn;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.util.Locale;
import java.util.Vector;
import android.app.Notification;
@@ -108,6 +109,7 @@ public class OpenVpnService extends VpnService implements StateListener {
if(tickerText!=null)
nbuilder.setTicker(tickerText);
+ @SuppressWarnings("deprecation")
Notification notification = nbuilder.getNotification();
@@ -451,7 +453,7 @@ public class OpenVpnService extends VpnService implements StateListener {
// Other notifications are shown,
// This also mean we are no longer connected, ignore bytecount messages until next
// CONNECTED
- String ticker = state.toLowerCase();
+ String ticker = state.toLowerCase(Locale.getDefault());
showNotification(state +" " + logmessage,ticker,false,0);
}