osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.71k stars 1.03k forks source link

Some widgets don't have a context menu #21064

Open Nine-Tailed opened 1 month ago

Nine-Tailed commented 1 month ago

Description

The context menu is not called for the coordinates widget and marker panel on the map screen.

Steps to reproduce

Add these widgets to the map and try to call the context menu.

Actual result

No context menu.

Expected result

There is a context menu.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version:OsmAnd~ 4.9.0#3470m, Дата выпуска: 2024-10-16
Android/iOS version:
Device model:
Crash-Logs: ?
yuriiurshuliak commented 1 month ago

The bug has been reproduced. To test it, add the "Map markers bar" and "Coordinates: map center" widgets to the top bar, and also add the "GPS info" widget for comparison. Then, long-press on the "Map markers bar" and "Coordinates: map center" widgets. After that, try long-pressing the "GPS info" widget.

You'll notice that long-pressing the "GPS info" widget brings up the context menu, while long-pressing the "Map markers bar" and "Coordinates: map center" widgets does not trigger the context menu.

However, it seems to me that this is expected behavior, as the "Map markers bar" and "Coordinates: map center" widgets have specific functions: the "Map markers bar" moves the map to a marker, and "Coordinates: map center" copies the coordinates displayed in the widget.

OsmAnd~ 4.9.0#3456m, released: 2024-10-16

https://github.com/user-attachments/assets/b1efa256-d9e3-4193-8725-412ada06d0a3

Nine-Tailed commented 1 month ago

but other widgets also perform some action when pressed, track recording, radius ruler, sunrise/sunset, media notes, etc.

Nine-Tailed commented 1 month ago

@vshcherb, please note that some widgets do not have a context menu at all.

vshcherb commented 3 weeks ago

These are outdated widgets and they need to be upgraded Map Markers, Coordinates widgets