Search in sources :

Example 6 with AidlMapPointWrapper

use of net.osmand.aidl.AidlMapPointWrapper in project Osmand by osmandapp.

the class MapActivity method canUpdateAMapPointMenu.

private boolean canUpdateAMapPointMenu(AidlMapPointWrapper point, String layerId) {
    Object object = mapContextMenu.getObject();
    if (!mapContextMenu.isVisible() || !(object instanceof AidlMapPointWrapper)) {
        return false;
    }
    AidlMapPointWrapper oldPoint = (AidlMapPointWrapper) object;
    return oldPoint.getLayerId().equals(layerId) && oldPoint.getId().equals(point.getId());
}
Also used : AidlMapPointWrapper(net.osmand.aidl.AidlMapPointWrapper)

Aggregations

AidlMapPointWrapper (net.osmand.aidl.AidlMapPointWrapper)6 LatLon (net.osmand.data.LatLon)4 Paint (android.graphics.Paint)3 Bitmap (android.graphics.Bitmap)2 RenderedObject (net.osmand.NativeLibrary.RenderedObject)2 AMapPoint (net.osmand.aidlapi.maplayer.point.AMapPoint)2 Amenity (net.osmand.data.Amenity)2 FavouritePoint (net.osmand.data.FavouritePoint)2 MapActivity (net.osmand.plus.activities.MapActivity)2 SelectedGpxPoint (net.osmand.plus.mapcontextmenu.controllers.SelectedGpxMenuController.SelectedGpxPoint)2 Rect (android.graphics.Rect)1 Pair (android.util.Pair)1 TIntArrayList (gnu.trove.list.array.TIntArrayList)1 WptPt (net.osmand.GPXUtilities.WptPt)1 BackgroundType (net.osmand.data.FavouritePoint.BackgroundType)1 TransportStop (net.osmand.data.TransportStop)1 AvoidSpecificRoads (net.osmand.plus.helpers.AvoidSpecificRoads)1 TargetPoint (net.osmand.plus.helpers.TargetPointsHelper.TargetPoint)1 MapContextMenu (net.osmand.plus.mapcontextmenu.MapContextMenu)1 AMapPointMenuController (net.osmand.plus.mapcontextmenu.controllers.AMapPointMenuController)1