sort favs after import
This commit is contained in:
parent
13cfa0c60c
commit
436a88b27a
2 changed files with 2 additions and 1 deletions
|
@ -483,7 +483,7 @@ public class FavouritesDbHelper {
|
|||
cachedFavoritePoints = temp;
|
||||
}
|
||||
|
||||
private void sortAll() {
|
||||
public void sortAll() {
|
||||
final Collator collator = Collator.getInstance();
|
||||
collator.setStrength(Collator.SECONDARY);
|
||||
Collections.sort(favoriteGroups, new Comparator<FavoriteGroup>() {
|
||||
|
|
|
@ -182,6 +182,7 @@ public class GpxImportHelper {
|
|||
favoritesHelper.deleteFavourite(favourite, false);
|
||||
favoritesHelper.addFavourite(favourite, false);
|
||||
}
|
||||
favoritesHelper.sortAll();
|
||||
favoritesHelper.saveCurrentPointsIntoFile();
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue