Fixed random order

This commit is contained in:
PaulStets 2018-04-28 15:28:41 +03:00
parent 795ec629fd
commit fbfe84fa52

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) {