Bakcward compatibility

pull/213/head
M66B 2 years ago
parent f6efcfa4df
commit e696cadaf0

@ -1173,6 +1173,9 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
editor.putLong(key, (Long) value); editor.putLong(key, (Long) value);
break; break;
case "float": case "float":
if (value instanceof Double)
editor.putFloat(key, ((Double) value).floatValue());
else
editor.putFloat(key, (Float) value); editor.putFloat(key, (Float) value);
break; break;
case "string": case "string":

Loading…
Cancel
Save