summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/Settings_Obscure.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-03 22:18:56 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-03 22:18:56 +0200
commit4c991f2fc906bb66f060c15bc27a4fad0fb4805a (patch)
tree069e25f914563249f15c14e49dc24f11dfd99e9b /src/de/blinkt/openvpn/Settings_Obscure.java
parent3512dd8de571c8183a7e7476db30a928573d8442 (diff)
add delete Profile support
add Config Parser begin openvpn config => Vpn Profile Converter
Diffstat (limited to 'src/de/blinkt/openvpn/Settings_Obscure.java')
-rw-r--r--src/de/blinkt/openvpn/Settings_Obscure.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/Settings_Obscure.java b/src/de/blinkt/openvpn/Settings_Obscure.java
index d7bce9ad..65d1c400 100644
--- a/src/de/blinkt/openvpn/Settings_Obscure.java
+++ b/src/de/blinkt/openvpn/Settings_Obscure.java
@@ -63,12 +63,14 @@ public class Settings_Obscure extends PreferenceFragment implements OnPreference
mProfile.mVerb = mLogverbosity.getValue();
}
+
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
if(preference==mLogverbosity) {
mLogverbosity.setDefaultValue(newValue);
- // Does not refresh otherwise
- mLogverbosity.setSummary("%s");
+ //This is idiotic.
+ int i =Integer.parseInt((String) newValue);
+ mLogverbosity.setSummary(mLogverbosity.getEntries()[i]);
}
return true;