diff options
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java index 21d78a0..3339650 100644 --- a/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java +++ b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlay.java @@ -63,7 +63,12 @@ public class GoogleCacheOverlay extends ItemizedOverlay<GoogleCacheOverlayItem> @Override public void draw(Canvas canvas, MapView mapView, boolean shadow) { - base.draw(canvas, (MapViewImpl) mapView, shadow); + base.draw(canvas, castMapViewImpl(mapView), shadow); + } + + private static MapViewImpl castMapViewImpl(MapView mapView) { + assert mapView instanceof MapViewImpl; + return (MapViewImpl) mapView; } @Override |
