aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-01-18 16:00:37 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-01-18 16:00:37 +0000
commit63e1cb8f84d9530066caa4b2bf98a4b691ff830c (patch)
treed26aa83701eca7b2993bf1718b760d33035e1f8b
parent762926b29c11459a6c4f4519343565c2258ac11c (diff)
downloadsouthamptonuniversitymap-63e1cb8f84d9530066caa4b2bf98a4b691ff830c.tar
southamptonuniversitymap-63e1cb8f84d9530066caa4b2bf98a4b691ff830c.tar.gz
Start with bus times and gps enabled.
-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);