diff options
author | Sean Leonard <meanderingcode@aetherislands.net> | 2013-02-05 17:26:59 -0700 |
---|---|---|
committer | Sean Leonard <meanderingcode@aetherislands.net> | 2013-02-05 17:26:59 -0700 |
commit | f7704e52429ebc32b62be4b3443a224c74b2c0b8 (patch) | |
tree | 560accf480a6b5c3ecb6e82cc9968c5edcb93eb4 /src/se/leap/leapclient/ConfigHelper.java | |
parent | 2045c946b0f67c0415909bb1e459ac00af1359b9 (diff) | |
parent | 1d5f1c320ee67cfadd62aeef056a043bee75096d (diff) |
Merge branch 'wizard' of ssh://leap.se/leap_android into wizard
Conflicts:
src/se/leap/leapclient/Dashboard.java
Diffstat (limited to 'src/se/leap/leapclient/ConfigHelper.java')
-rw-r--r-- | src/se/leap/leapclient/ConfigHelper.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/se/leap/leapclient/ConfigHelper.java b/src/se/leap/leapclient/ConfigHelper.java index 9b857b0d..be848db0 100644 --- a/src/se/leap/leapclient/ConfigHelper.java +++ b/src/se/leap/leapclient/ConfigHelper.java @@ -10,20 +10,21 @@ public class ConfigHelper { final static String downloadJsonFilesBundleExtra = "downloadJSONFiles"; final static String provider_key = "provider"; + final static String cert_key = "cert"; final static String eip_service_key = "eip"; - static void saveSharedPref(String shared_preferences_key, - JSONObject content) { - + static void saveSharedPref(String shared_preferences_key, JSONObject content) { + SharedPreferences.Editor shared_preferences_editor = ProviderListActivity.shared_preferences .edit(); shared_preferences_editor.putString(shared_preferences_key, content.toString()); shared_preferences_editor.commit(); - System.out.println("Shared preferences updated: " + System.out.println("Shared preferences updated: key = " + + shared_preferences_key + + " Content = " + ProviderListActivity.shared_preferences.getString( shared_preferences_key, "Default")); - } static void rescueJSONException(JSONException e) { |