Bakcward compatibility

This commit is contained in:
M66B 2023-06-25 15:24:54 +02:00
parent f6efcfa4df
commit e696cadaf0
1 changed files with 4 additions and 1 deletions

View File

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