osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.59k stars 1.01k forks source link

Quick Action doesn't show selected map style; instead, next map style #20539

Open gpsvisualizer opened 1 month ago

gpsvisualizer commented 1 month ago

Description

I use the Quick Action widget to set the layer used for map overlays and underlays. The behavior of this function is correct, but the display of the current selection is not correct. The text in the Quick Action grid always shows the name of the option AFTER the one that is selected (unless the last item is selected).

For example, if my Quick Action underlays are A, B, C, and D, and I select B as the underlay, the text in the Quick Action box will say "C", not B.

This bug affects overlays, underlays, AND map styles.

Steps to reproduce

Screenshots follow...

Open widget, tap on the underlay icon, and select an underlay: Step 1 - select underlay

The selected underlay displays: Step 2 - underlay is visible

Open widget and note the incorrect name of the underlay in the upper-right corner: Step 3 - open Quick Actions again

Tap on the underlay icon to see that the proper radio button is selected, despite the incorrect name in the previous step: Step 4 - select underlay

Actual result

The Quick Action widget does not display the name of the currently selected underlay/overlay/style, it displays the name of the following item in the list.

Expected result

The Quick Action widget should properly show the name of the selected underlay/overlay/style.

Your Environment (required)


OsmAnd Version: 4.8.5, but this issue has been occurring for _years_.
Android/iOS version: Android 12
Device model: Google Pixel 4a
vshcherb commented 1 month ago

Yes it displays the name of the next one. There is no option to configure however if quick action has 2 options only (on / off) it displays name of the layer