diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-02-19 10:16:16 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-02-19 10:16:16 +0000 |
commit | a02e8ae9eed3b2e3c105db19e84c27a0774172dd (patch) | |
tree | 523ba41be4e1bad06150d9caedb682eef0d7edf2 /src/net/cbaines/suma/MapActivity.java | |
parent | bff738801d5a231806c42bcb06b1e187d120b5a9 (diff) | |
download | southamptonuniversitymap-a02e8ae9eed3b2e3c105db19e84c27a0774172dd.tar southamptonuniversitymap-a02e8ae9eed3b2e3c105db19e84c27a0774172dd.tar.gz |
More bug fixes and stuff.
Diffstat (limited to 'src/net/cbaines/suma/MapActivity.java')
-rw-r--r-- | src/net/cbaines/suma/MapActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/cbaines/suma/MapActivity.java b/src/net/cbaines/suma/MapActivity.java index d12057c..cad7567 100644 --- a/src/net/cbaines/suma/MapActivity.java +++ b/src/net/cbaines/suma/MapActivity.java @@ -758,6 +758,13 @@ public class MapActivity extends OrmLiteBaseActivity<DatabaseHelper> implements && !activityPrefs.getBoolean(BUS_STOP_OVERLAYS + "U9", UNI_LINK_BUS_STOP_OVERLAY_ENABLED_BY_DEFAULT)) { Log.i(TAG, "Uni-Link bus stop overlay not needed"); + overlays.remove(UNI_LINK_BUS_STOP_OVERLAY); + + synchronized (mapView.getOverlays()) { + mapView.getOverlays().remove(uniLinkBusStopOverlay); + Collections.sort(mapView.getOverlays(), comparator); + } + uniLinkBusStopOverlay = null; } else { uniLinkBusStopOverlay.setRoutes(0, activityPrefs.getBoolean(BUS_STOP_OVERLAYS + "U1", |