We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbb3010 commit 03ea04eCopy full SHA for 03ea04e
Simplenote/src/main/java/com/automattic/simplenote/models/Preferences.java
@@ -122,7 +122,11 @@ public boolean getWasSustainer() {
122
return false;
123
}
124
125
- return (Boolean)getProperty(WAS_SUSTAINER_KEY);
+ if (wasSustainer instanceof Boolean) {
126
+ return (Boolean) wasSustainer;
127
+ } else {
128
+ return wasSustainer instanceof Integer && ((Integer) wasSustainer) > 0;
129
+ }
130
131
132
public static class Schema extends BucketSchema<Preferences> {
0 commit comments