summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/Dashboard.java
diff options
context:
space:
mode:
authorSean Leonard <meanderingcode@aetherislands.net>2013-02-07 01:34:49 -0700
committerSean Leonard <meanderingcode@aetherislands.net>2013-02-07 01:34:49 -0700
commitc107e15a1ca7707a7c2351a3c31f3dbd9f156b73 (patch)
treec9a818953f06ab574283cf9eb989fd729bb3c810 /src/se/leap/leapclient/Dashboard.java
parent6e0142a335eafe8a9b0e41b0e968038c0aeabd11 (diff)
Rearrange singleton Provider.class pattern, Fix isolated SharedPreferences silos
Diffstat (limited to 'src/se/leap/leapclient/Dashboard.java')
-rw-r--r--src/se/leap/leapclient/Dashboard.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/se/leap/leapclient/Dashboard.java b/src/se/leap/leapclient/Dashboard.java
index c3c6a07f..b6110aac 100644
--- a/src/se/leap/leapclient/Dashboard.java
+++ b/src/se/leap/leapclient/Dashboard.java
@@ -29,7 +29,7 @@ public class Dashboard extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.client_dashboard);
- preferences = getPreferences(MODE_PRIVATE);
+ preferences = getSharedPreferences(ConfigHelper.PREFERENCES_KEY,MODE_PRIVATE);
// Check if we have preferences, run configuration wizard if not
// TODO We should do a better check for config that this!
@@ -42,7 +42,8 @@ public class Dashboard extends Activity {
private void buildDashboard() {
// Get our provider
- provider = Provider.getInstance(preferences);
+ provider = Provider.getInstance();
+ provider.init( this );
// Set provider name in textview
providerNameTV = (TextView) findViewById(R.id.providerName);