diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-23 12:13:47 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-23 13:12:28 +0100 |
commit | 66aa9e5341c73819eb3c0e53330d4e8144f268e2 (patch) | |
tree | ccd0ba514d61f7ed53e6f128d7c8a5b456555e5b /main/src/cgeo/geocaching/maps | |
parent | 2253e295e5a6fc1fb40c5dfaed1ce8e00c1e8088 (diff) | |
download | cgeo-66aa9e5341c73819eb3c0e53330d4e8144f268e2.zip cgeo-66aa9e5341c73819eb3c0e53330d4e8144f268e2.tar.gz cgeo-66aa9e5341c73819eb3c0e53330d4e8144f268e2.tar.bz2 |
fix #2322: GPX imported caches not marked as owned
The "isOwner()" property (previously named "isOwn()") is now
synthesized by comparing the username with the cache owner name.
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
-rw-r--r-- | main/src/cgeo/geocaching/maps/CGeoMap.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/maps/CGeoMap.java b/main/src/cgeo/geocaching/maps/CGeoMap.java index e48ca70..dcb225f 100644 --- a/main/src/cgeo/geocaching/maps/CGeoMap.java +++ b/main/src/cgeo/geocaching/maps/CGeoMap.java @@ -1151,7 +1151,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto final List<cgCache> tempList = caches.getAsList(); for (cgCache cache : tempList) { - if ((cache.isFound() && excludeMine) || (cache.isOwn() && excludeMine) || (cache.isDisabled() && excludeDisabled)) { + if ((cache.isFound() && excludeMine) || (cache.isOwner() && excludeMine) || (cache.isDisabled() && excludeDisabled)) { caches.remove(cache); } } @@ -1640,7 +1640,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto .append(cache.isReliableLatLon()) .append(cache.getType().id) .append(cache.isDisabled() || cache.isArchived()) - .append(cache.isOwn()) + .append(cache.isOwner()) .append(cache.isFound()) .append(cache.hasUserModifiedCoords()) .append(cache.getPersonalNote()) @@ -1671,7 +1671,7 @@ public class CGeoMap extends AbstractMap implements OnMapDragListener, ViewFacto layers.add(getResources().getDrawable(cache.getType().markerId)); insets.add(INSET_TYPE[resolution]); // own - if (cache.isOwn()) { + if (cache.isOwner()) { layers.add(getResources().getDrawable(R.drawable.marker_own)); insets.add(INSET_OWN[resolution]); // if not, checked if stored |