summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/ConfigHelper.java
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-07-12 13:35:04 -0600
committerSean Leonard <meanderingcode@aetherislands.net>2013-07-12 14:27:03 -0600
commit1ba2d488737bdb84847bbbc7cf9038610b1f094b (patch)
tree0b30e1136dfbe3a367627cf1cc011f1f6d1fe0b3 /src/se/leap/leapclient/ConfigHelper.java
parent210b562bd474e7d8c22becf62ea52399f0a6d9f9 (diff)
parent84d3b5f6967c0bac2a740627386ff92b6e283b16 (diff)
Merge branch 'feature/back-button-in-configuration-wizard' into develop
Diffstat (limited to 'src/se/leap/leapclient/ConfigHelper.java')
-rw-r--r--src/se/leap/leapclient/ConfigHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/se/leap/leapclient/ConfigHelper.java b/src/se/leap/leapclient/ConfigHelper.java
index 10b3edf4..007db95c 100644
--- a/src/se/leap/leapclient/ConfigHelper.java
+++ b/src/se/leap/leapclient/ConfigHelper.java
@@ -178,7 +178,8 @@ public class ConfigHelper {
public static JSONObject getJsonFromSharedPref(String shared_preferences_key) throws JSONException {
JSONObject content = null;
if ( checkSharedPrefs() ) {
- content = new JSONObject( shared_preferences.getString(shared_preferences_key, "") );
+ String json_string = shared_preferences.getString(shared_preferences_key, "");
+ content = new JSONObject(json_string);
}
return content;