mirror of https://github.com/M66B/FairEmail.git
Bakcward compatibility
This commit is contained in:
parent
f6efcfa4df
commit
e696cadaf0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue