updating existing test code

This commit is contained in:
Joe Bowser
2015-05-13 11:55:44 -07:00
parent 44aa7464e1
commit b5a58e6ca0
4 changed files with 3 additions and 11 deletions
@@ -61,13 +61,6 @@ public class CordovaPreferences {
String value = prefs.get(name);
if (value != null) {
return Boolean.parseBoolean(value);
} else if (preferencesBundleExtras != null) {
Object bundleValue = preferencesBundleExtras.get(name);
if (bundleValue instanceof String) {
return "true".equals(bundleValue);
}
// Gives a nice warning if type is wrong.
return preferencesBundleExtras.getBoolean(name, defaultValue);
}
return defaultValue;
}