diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java index 69d562a722..83d6e90e7c 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -1520,6 +1520,9 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { if (mapActivity != null && rec != null) { MapContextMenu menu = mapActivity.getContextMenu(); menu.show(new LatLon(rec.lat, rec.lon), audioNotesLayer.getObjectName(rec), rec); + if (app.getRoutingHelper().isFollowingMode()) { + menu.hideWithTimeout(3000); + } } } diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java index a3cb176297..4b636187f9 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenu.java @@ -71,6 +71,7 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL private boolean inLocationUpdate = false; private boolean appModeChanged; private boolean appModeListenerAdded; + private boolean autoHide; private int favActionIconId; @@ -300,6 +301,7 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL active = false; } centerMarker = false; + autoHide = false; } } @@ -348,6 +350,19 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL } } + // timeout in msec + public void hideWithTimeout(long timeout) { + autoHide = true; + mapActivity.getMyApplication().runInUIThread(new Runnable() { + @Override + public void run() { + if (autoHide) { + hide(); + } + } + }, timeout); + } + public void updateMenuUI() { WeakReference fragmentRef = findMenuFragment(); if (fragmentRef != null) {