(Android Java) Add readBackFloat

This commit is contained in:
twinaphex 2013-08-24 16:39:23 +02:00
parent 23faaba1f1
commit a1abd8aaa7

View File

@ -275,6 +275,13 @@ public class MainMenuActivity extends PreferenceActivity {
edit.remove(key);
}
private void readbackFloat(ConfigFile cfg, SharedPreferences.Editor edit, String key) {
if (cfg.keyExists(key))
edit.putFloat(key, cfg.getFloat(key));
else
edit.remove(key);
}
public void readbackConfigFile() {
String path = getDefaultConfigPath();
ConfigFile config;