diff options
Diffstat (limited to 'src/de/blinkt/openvpn/Settings_Obscure.java')
-rw-r--r-- | src/de/blinkt/openvpn/Settings_Obscure.java | 6 |
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; |