aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-01-27 10:15:26 +0100
committerrsudev <rasch@munin-soft.de>2014-01-27 10:15:26 +0100
commitb957d93f3d1d0de5772b8ddcacacf6b380ddd065 (patch)
tree84dfebe82cfc181e3d6ef4ff3941e526fdda7794 /main/src/cgeo/geocaching/maps
parent928e6a394fd6da52c69e008c4f1c68cb1585a8ca (diff)
downloadcgeo-b957d93f3d1d0de5772b8ddcacacf6b380ddd065.zip
cgeo-b957d93f3d1d0de5772b8ddcacacf6b380ddd065.tar.gz
cgeo-b957d93f3d1d0de5772b8ddcacacf6b380ddd065.tar.bz2
Fixes #3572, Context is not an instance of MapActivity
- re-instantiate checking current mapsource against expected mapsource
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
-rw-r--r--main/src/cgeo/geocaching/maps/CGeoMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java
index bcc99a2..876652b 100644
--- a/main/src/cgeo/geocaching/maps/CGeoMap.java
+++ b/main/src/cgeo/geocaching/maps/CGeoMap.java
@@ -801,7 +801,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto
* @return true if a restart is needed, false otherwise
*/
private boolean changeMapSource(final MapSource mapSource) {
- final boolean restartRequired = !MapProviderFactory.isSameActivity(Settings.getMapSource(), mapSource);
+ final boolean restartRequired = !MapProviderFactory.isSameActivity(MapProviderFactory.getMapSource(currentSourceId), mapSource);
Settings.setMapSource(mapSource);
currentSourceId = mapSource.getNumericalId();