-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Improve sorting functionality of Track folders / Tracks #21310
Open
nazar-kutz
wants to merge
17
commits into
r4.9
Choose a base branch
from
fix_19634_reopen_v2
base: r4.9
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+610
−402
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7d48fc8
Use TracksComparator to sort TrackTab instances
nazar-kutz e0083ff
Use relative path to identify tracks folder (refactoring)
nazar-kutz 6939e0e
Use relative path for "import" tracks folder as well
nazar-kutz b3d5c33
Create wrapper class to simplify interaction with track sort modes
nazar-kutz dfaf225
Update track sort mode after folder was moved or renamed
nazar-kutz 5e5d4cb
Upgrade sort mode keys on flight
nazar-kutz d455627
TrackSortModesCollection: small logic and code appearance fixes
nazar-kutz de5e683
Upgrade sort modes collection keys in the proper places
nazar-kutz baf88d9
Remove extra file separator to ensure consistency of folder keys
nazar-kutz eac8c9e
Improve name retrieval code for TrackTab
nazar-kutz cb697dd
Calculate TrackFolderAnalysis for TrackTab + refactoring
nazar-kutz 5d62318
Fix problems for "FOLDERS" tab
nazar-kutz dae43cb
Upgrade keys only once & try to do it when collection is requested
nazar-kutz 1dbe52d
Never display root folder name in tracks folder's relative path and id
nazar-kutz 3123ae0
Small fixes
nazar-kutz 9d818fe
Merge branch 'r4.9' into fix_19634_reopen_v2
nazar-kutz b55917b
Small fixes after merge r4.9
nazar-kutz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
OsmAnd/src/net/osmand/plus/configmap/tracks/SelectTrackTabsHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.osmand.plus.configmap.tracks; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import net.osmand.plus.OsmandApplication; | ||
import net.osmand.shared.gpx.data.TrackFolder; | ||
|
||
public class SelectTrackTabsHelper extends TrackTabsHelper { | ||
|
||
public SelectTrackTabsHelper(@NonNull OsmandApplication app) { | ||
super(app); | ||
} | ||
|
||
@Override | ||
protected void updateTrackTabs(@NonNull TrackFolder rootFolder) { | ||
trackTabs.clear(); | ||
trackTabs.put(TrackTabType.ON_MAP.name(), getTracksOnMapTab()); | ||
trackTabs.put(TrackTabType.ALL.name(), getAllTracksTab()); | ||
trackTabs.put(TrackTabType.FOLDERS.name(), getFoldersTab(rootFolder)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useExtendedName > includingSubdirs