Parinesh-Baitule / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Custom AppSettings cannot be read from preferences #426

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write custom data into AppSettings, e.g. settings.putBoolean("xyz", true);
2. Use AppSettings.save(String) and then AppSettings.load(String) with the same 
string key.

What is the expected output? What do you see instead?
For the loaded AppSettings, settings.getBoolean("xyz") should return true, but 
false is returned. The loaded AppSettings will not have the xyz boolean in it, 
so getBoolean("xyz") will fail.

To fix the issue, the type of variable must be written into the preferences 
instead of relying on the defaults map to query the type.

Original issue reported on code.google.com by ShadowIs...@gmail.com on 16 Nov 2011 at 4:26

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 4 Apr 2012 at 12:36