diff options
| author | Marco Jacob <mjacob@union06.de> | 2013-09-13 06:16:19 +0200 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-09-13 07:19:10 +0200 |
| commit | e150d39ab061d08455a1d75bec811fd322a211b6 (patch) | |
| tree | c017995ea117d848c943d3455ee44805c92eb6f2 /main/src | |
| parent | 5de49e288b5737d712a7ef53bc9a0d3dba3b78c4 (diff) | |
| download | cgeo-e150d39ab061d08455a1d75bec811fd322a211b6.zip cgeo-e150d39ab061d08455a1d75bec811fd322a211b6.tar.gz cgeo-e150d39ab061d08455a1d75bec811fd322a211b6.tar.bz2 | |
fixes #3248 - select map file first to get offline map choice
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapProvider.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapProvider.java b/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapProvider.java index 7c6865d..d099b79 100644 --- a/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapProvider.java +++ b/main/src/cgeo/geocaching/maps/mapsforge/MapsforgeMapProvider.java @@ -1,7 +1,6 @@ package cgeo.geocaching.maps.mapsforge; import cgeo.geocaching.R; -import cgeo.geocaching.settings.Settings; import cgeo.geocaching.cgeoapplication; import cgeo.geocaching.maps.AbstractMapProvider; import cgeo.geocaching.maps.MapProviderFactory; @@ -10,6 +9,7 @@ import cgeo.geocaching.maps.interfaces.MapProvider; import cgeo.geocaching.maps.interfaces.MapSource; import cgeo.geocaching.maps.mapsforge.v024.MapsforgeMapActivity024; import cgeo.geocaching.maps.mapsforge.v024.MapsforgeMapItemFactory024; +import cgeo.geocaching.settings.Settings; import cgeo.geocaching.utils.Log; import org.apache.commons.lang3.StringUtils; @@ -169,9 +169,5 @@ public final class MapsforgeMapProvider extends AbstractMapProvider { final String mapName = StringUtils.capitalize(StringUtils.substringBeforeLast(new File(mapFile).getName(), ".")); registerMapSource(new OfflineMapSource(mapFile, this, mapName + " (" + resources.getString(R.string.map_source_osm_offline) + ")", MapGeneratorInternal.DATABASE_RENDERER)); } - // have a default entry, if no map files are available. otherwise we cannot select "offline" in the settings - if (offlineMaps.isEmpty()) { - registerMapSource(new OfflineMapSource("", this, resources.getString(R.string.map_source_osm_offline), MapGeneratorInternal.DATABASE_RENDERER)); - } } } |
