(Context c, String key)
| 63 | } |
| 64 | |
| 65 | public String get(Context c, String key) { |
| 66 | SharedPreferences pref = c.getSharedPreferences(this.name, Context.MODE_PRIVATE); |
| 67 | int resourceId = PrefStore.getResourceId(c, key, "string"); |
| 68 | Map<String, ?> source = pref.getAll(); |
| 69 | String defaultValue = ""; |
| 70 | if (resourceId > 0) defaultValue = c.getString(resourceId); |
| 71 | Object value = source.get(key); |
| 72 | if (value == null) value = defaultValue; |
| 73 | return fixOutputParam(c, key, value.toString()); |
| 74 | } |
| 75 | |
| 76 | public Map<String, String> get(Context c) { |
| 77 | SharedPreferences pref = c.getSharedPreferences(this.name, Context.MODE_PRIVATE); |
no test coverage detected