(Android Java) Add readBackFloat
This commit is contained in:
parent
23faaba1f1
commit
a1abd8aaa7
|
@ -275,6 +275,13 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||||
edit.remove(key);
|
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() {
|
public void readbackConfigFile() {
|
||||||
String path = getDefaultConfigPath();
|
String path = getDefaultConfigPath();
|
||||||
ConfigFile config;
|
ConfigFile config;
|
||||||
|
|
Loading…
Reference in New Issue