-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyPlaces>Tracks root folder and subfolders lose sorting order #19333
Comments
In #17955 I added a video how to reproduce this bug. And just now I reproduced it by simply changing the visibility of two tracks to false. This also changed the sorting order of the tracks root folder. |
The bug has been reproduced. I managed to reproduce it on the current release version, but it's not occurring on the latest nightly version. To reproduce the bug on the release version, navigate to "My places" and ensure that the "Sort by" option in both the Tracks and Visible on map folders is set to "Last modified" mode. Then attempt to switch the sorting in both folders to "Name: A - Z" mode, and after confirming the last change, click on the cross in the upper left corner and return to the map. Revisit the "My places - Tracks" folder, and you'll observe that the sorting automatically reverts to "Last modified" mode. OsmAnd 4.6.13, released: 2024-01-19
|
I believe there are multiple different ways to independently reproduce issues about the sorting order of the new tracks screens. Someone knowledgeable about that code should go tyhroug the entire code base, search for places where the sort order is changed, and check for potential occurences of unwanted changes happening... or else we may not fix these issues for good for another long time... |
Side note: about something which confuses some readers of the screenshots and recordings: When using the "Sort subfolders" action, its initial screen highlights one of the sorting options with a color. By convention you may think this is the current sorting order used for the subfolders, but in fact it seems not. (In fact it even shows if not all subfolders are sorted the same.) Not sure what it means to be - perhaps the highlighting needs removing here to avoid confusion. |
I don´t know why, but all my tracks sub-folders are set back to sorting "last edited". |
I think, changing Osmands data folder could have caused it. |
In my cases it had nothing to do with changing the data folder or creating new folders... happens during app use, with just occasionally displaying/hiding groups of tracks. |
Yes, same here. Let's please also fix in this issue, or if needed we can create a second one. |
You may activate my previously created ticket (#19634), if you want to (I closed it again, because I was not sure if it´s a double of this here or not) Thanks! |
The problem of that issue it's still in reproducing phase (I hope we will get more time to put some logs after release rush) |
With this commit for #19634 it is now like this:
And PS: This fix increases for my setup (3500 tracks in 70 subfolders) the time to enter that screen which was meanwhile down to 2-3sec to like 15+ sec again... (every time I enter it, there seems no caching or remembering) |
THIS is exactly the behavior I have on my Tablet (Galaxy Tab S6), since a few releases (maybe a month or so?). Takes around 20s every time I open "my places / tracks" or "configure map / tracks". |
Looks like the problem is associated with the "Visible on map" tracks screen, we have 2 error cases:
'Last modified' is the default value. So if we forget to set the sortMode somewhere, or try to set it to something invalid, that would cause this effect. |
@Chumva BaseTrackFolderFragment.java's OsmAnd/OsmAnd/src/net/osmand/plus/myplaces/tracks/dialogs/BaseTrackFolderFragment.java Line 331 in 73a7b1b
And: This issue is connected to #19634: We use two different sets of sortMode settings for the MyPlaces>Tracks folders and the Visible on map screen's tabs, should use the same. |
To elaborate: The issue comes from the different scopes of sort modes we save on the 'MyPlaces>Tracks' vs. the 'Visible on map' screens. Tentative TODOs:
|
This PR fixes (1) and (2) above #19814. It preserves the existing sort modes when saved in the two separate tack screens we have. As a consequence, we need to have the method Issue #19634 is not yet fixed by this PR. We now need code sorting the tabs on 'Configure map/Tracks' according to the 'MyPlaces>Track's' screens rootFolder's sortMode, from what I see that is so far completely missing. |
Have to re-open this. With intense use in the last 2 weeks, at least once daily the sorting order of MyPlaces>Tracks and its subfolders resets to "Last modified", while I positively always set everything to A-Z.
There must be one or several remnants in our code always setting things back to "Last modified".
Candidates are after a fresh app start, manual profile change, a navigation (without using turn-by-turn mode), or after making more track folders visible on map.
The text was updated successfully, but these errors were encountered: