Merge pull request #5298 from osmandapp/PaulsBranch

Fixed random order
This commit is contained in:
vshcherb 2018-04-28 15:29:39 +03:00 committed by GitHub
commit 251bbd8201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,8 @@ public class TravelDbHelper {
cursor.close();
}
LinkedHashMap<WikivoyageSearchResult, List<WikivoyageSearchResult>> res = new LinkedHashMap<>();
for (String header : navMap.keySet()) {
parts = parts == null ? new String[]{} : parts;
for (String header : parts) {
WikivoyageSearchResult searchResult = headerObjs.get(header);
List<WikivoyageSearchResult> results = navMap.get(header);
if (results != null) {