summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/Settings_Obscure.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-03 22:51:47 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-03 22:51:47 +0200
commit2b3ea917b0a830e3ff4817c7240e0f1808ae58bc (patch)
tree2359f4fca5e51d2b7eb253728f62b74db7da0e69 /src/de/blinkt/openvpn/Settings_Obscure.java
parent9cd2069d5d57fc605a8eae3e6f8a0b09b56d4c16 (diff)
parentd3c50d3637462d4e3e3a3c09d43d37ce5656f67a (diff)
Merge Merge try number 2
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;