@Override
        public void updateGeoDir(@NonNull final cgeo.geocaching.sensors.GeoData geo, final float dir) {
            currentLocation = geo;
            currentHeading = AngleUtils.getDirectionNow(dir);
            repaintPositionOverlay();
        }
weak reference to the outer class
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/NewMap.java