diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-06-01 11:34:14 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-06-01 11:34:14 +0200 |
| commit | de0922ed82feb3d4715b8b354951c93852f4567a (patch) | |
| tree | 0b50c9cd2620239a42f328c9ee9c660f25c078f9 /main/src/cgeo/geocaching/maps | |
| parent | 1222116a3c6f4737859fe93d5bf81786ae4340e2 (diff) | |
| download | cgeo-de0922ed82feb3d4715b8b354951c93852f4567a.zip cgeo-de0922ed82feb3d4715b8b354951c93852f4567a.tar.gz cgeo-de0922ed82feb3d4715b8b354951c93852f4567a.tar.bz2 | |
refactoring: remove the cache realm
* the cache realm enumeration ties different connectors together
* everything in the realm can also be stored at the connector instead
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index 19e4697..989bff4 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1622,7 +1622,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto .append(cache.isReliableLatLon()) .append(cache.getType().id) .append(cache.isDisabled() || cache.isArchived()) - .append(cache.getCacheRealm().id) + .append(cache.getMapMarkerId()) .append(cache.isOwner()) .append(cache.isFound()) .append(cache.hasUserModifiedCoords()) @@ -1645,7 +1645,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto final ArrayList<int[]> insets = new ArrayList<int[]>(8); // background: disabled or not - final Drawable marker = getResources().getDrawable(cache.isDisabled() || cache.isArchived() ? cache.getCacheRealm().markerDisabledId : cache.getCacheRealm().markerId); + final Drawable marker = getResources().getDrawable(cache.getMapMarkerId()); layers.add(marker); final int resolution = marker.getIntrinsicWidth() > 40 ? 1 : 0; // reliable or not |
