aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/cbaines/suma/SouthamptonUniversityMapActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
index 7321142..b6fcc7b 100644
--- a/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
+++ b/src/net/cbaines/suma/SouthamptonUniversityMapActivity.java
@@ -190,6 +190,14 @@ public class SouthamptonUniversityMapActivity extends OrmLiteBaseActivity<Databa
} else {
myLocationOverlay.disableMyLocation();
}
+
+ if (!sharedPrefs.contains("GPSEnabled")) {
+ sharedPrefs.edit().putBoolean("GPSEnabled", true).commit();
+ }
+
+ if (!sharedPrefs.contains("liveBusTimesEnabled")) {
+ sharedPrefs.edit().putBoolean("liveBusTimesEnabled", true).commit();
+ }
sharedPrefs.registerOnSharedPreferenceChangeListener(this);
activityPrefs.registerOnSharedPreferenceChangeListener(this);