Settings import: fix classes from map prefs

pull/317/head
Georg Lukas 2021-09-27 17:05:24 +02:00
rodzic 1ad6d4ed34
commit 6825935e2b
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,8 @@ class ProfileImportActivity extends Activity {
value.getClass().getSimpleName() match {
case "String" => prefsedit.putString(item, config.getString(item))
case "Boolean" => prefsedit.putBoolean(item, config.getBoolean(item))
case "Int" => prefsedit.putInt(item, config.getInt(item))
case "Int" | "Integer" => prefsedit.putInt(item, config.getInt(item))
case "Double" => prefsedit.putFloat(item, config.getDouble(item).asInstanceOf[Float])
}
}
prefsedit.commit()