Compare commits

...

4 Commits

Author SHA1 Message Date
str4d
8f302e6eeb 0.9.19.1
i2p.i2p tag: 0.9.19
2015-04-16 00:51:40 +00:00
str4d
93d2677b34 Fix for when an IntListPreference was previously stored in a ListPreference 2015-04-16 00:51:15 +00:00
str4d
1d02535158 StackOverflowException fix 2015-04-15 23:30:29 +00:00
str4d
8e0e5ed5c4 Updated CHANGELOG 2015-04-13 02:21:38 +00:00
3 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
0.9.19
0.9.19 / 2015-04-13 / 3cfb748946a5876dc06d5f81d811b142a88846f7
* Made internal state handling more stable
* Added graceful shutdown support
* Updated libjbigi to use GMP 6.0.0
* New libjbigi binary for armeabi-v7a to speed up newer devices
* Improved logging
* Bug fixes and translation updates

View File

@@ -5,8 +5,8 @@ android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
versionCode 4745227
versionName '0.9.19'
versionCode 4745229
versionName '0.9.19.1'
minSdkVersion 9
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)

View File

@@ -15,6 +15,15 @@ public class IntListPreference extends ListPreference {
@Override
protected boolean persistString(String value) {
if (getSharedPreferences().contains(getKey())) {
try {
getPersistedInt(0);
} catch (ClassCastException e) {
// Fix for where this preference was previously stored in a ListPreference
getSharedPreferences().edit().remove(getKey()).commit();
}
}
return value != null && persistInt(Integer.valueOf(value));
}
@@ -25,7 +34,7 @@ public class IntListPreference extends ListPreference {
int intValue = getPersistedInt(0);
return String.valueOf(intValue);
} catch (ClassCastException e) {
return getPersistedString("0");
return super.getPersistedString("0");
}
} else {
return defaultReturnValue;