osmandapp / OsmAnd

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

Rotating screen causes Create New Route malfunction #17080

Open YuriDenis opened 1 year ago

YuriDenis commented 1 year ago

I want to report a bug in Android version and a couple of suggestions

The bug:

In the Create New Route option (usually used to find distances in a straight line between two or more points) the add button and other options of the Create Route context are shown. If, while editing a route, I exit the app and immediately re-enter it, the marked route points appear, but the route creation options are no longer visible, nor is the main menu displayed to choose another option or resume creating the route. Normality is only restored by exiting the app, waiting a few minutes and re-entering.

Suggestion 1:

The app allows you to measure distances between two near or far points, I suggest that you also include the ability to calculate areas, it will not be an exact measurement, but it would help to have an idea of the desired area. Other apps do it, but it would be very convenient if Osmand included it in its basic version.

Suggestion 2:

Streets with the property surface=asphalt make it difficult to visualize the street name and its direction of circulation due to the symbology used, even the texts with the white border do not make the streets names more legible. Without making big changes, I suggest symbolizing the discontinuous color of asphalt, paved, soil or another, that is, the roads with discontinuous symbology much lighter (or more transparent) in such a way that the name and direction are visualized more clearly in the daylight at a glance, even on sunny days. I think that the dashed lines will still be very striking, even if they are made lighter and will do their work well for passing Osmand users. On the app: image Could be like this: image

Zirochkabila commented 1 year ago

OsmAnd~ 4.5.0#35885m, Released: 2023-05-03 @YuriDenis As for the first point - I can't reproduce it. As you can see in the video, all the functionality is working. As for the second and third points, the idea is interesting. But, we need to coordinate with @vshcherb

https://user-images.githubusercontent.com/104760013/235933664-f288e49e-95f5-436c-beb7-9a9244776566.mp4

YuriDenis commented 1 year ago

@Zirochkabila you're right, it happens when you turn the phone and then exit the app as I show in the following video

https://user-images.githubusercontent.com/36775879/235999372-b5969741-4fa8-46f9-ab32-878b69244a06.mp4

Zirochkabila commented 1 year ago

@YuriDenis which version you are using? - try updating the app or installing the night version. https://osmand.net/docs/versions/nightly_versions/

YuriDenis commented 1 year ago

@Zirochkabila my version is OsmAnd 4.4.7, delivery: 2023-04-10 Important: after turning the phone you must completely exit the application as I show in the video, not exit to the applications list as you show in your video, because I checked that this way the error isn't reproduced.

Zirochkabila commented 1 year ago

OsmAnd~ 4.5.0#35897m, Released: 2023-05-05

Step to reproduce

YuriDenis commented 1 year ago

It's correct, after these steps, when you completely exit the app and re-enter, you no longer see the controls to continue creating the route. This bug has been happening for a while, several versions have been released, but it hasn't been fixed, so I decided to report it.

Wonderer0 commented 1 year ago

While editing an existing track I found that just rotating the phone causes the "Plan a route" and "Save" buttons to vanish, and rotating it back to its original position doesn't cause them to re-appear. At this stage the other editing buttons are still visible and if you add a point, either by clicking the Add button or clicking somewhere on the map, then the missing buttons re-appear. You can then undo that Add and continue editing. The "Reverse route" Option also causes the missing buttons to appear, as does "Attach to the roads" even if cancelled, but "GPS filter" doesn't. I haven't tested the other Options.

If you leave OsmAnd, by either going to another app or by going to the home screen by clicking the home button, then when you re-enter OsmAnd again the other editing buttons are still there and you can still recover using one of the methods described above.

However if you leave OsmAnd and return to the home screen by clicking the Go-Back button then when you re-enter OsmAnd all the editing buttons have vanished and clicking on the map doesn't add a point either, even though the small circle in the centre of the screen suggests it is still stuck in the add-point mode. Probably the quickest way out of this is to Force Stop OsmAnd before re-entering it, but unfortunately any changes you made to the route you were editing will be lost.

vshcherb commented 1 year ago