move name filter to top

This commit is contained in:
sonora 2015-03-31 09:17:49 +02:00
parent 2b5e097c91
commit e6270b2ff4

View file

@ -208,14 +208,17 @@ public class PoiFiltersHelper {
public List<PoiLegacyFilter> getTopStandardFilters() {
if (cacheTopStandardFilters == null) {
cacheTopStandardFilters = new ArrayList<PoiLegacyFilter>();
PoiLegacyFilter filter = new PoiLegacyFilter(application.getString(R.string.poi_filter_custom_filter),
PoiLegacyFilter filter = new SearchByNameFilter(application);
filter.setStandardFilter(true);
cacheTopStandardFilters.add(filter);
filter = new PoiLegacyFilter(application.getString(R.string.poi_filter_custom_filter),
PoiLegacyFilter.CUSTOM_FILTER_ID, new LinkedHashMap<PoiCategory, LinkedHashSet<String>>(), application); //$NON-NLS-1$
filter.setStandardFilter(true);
cacheTopStandardFilters.add(filter);
cacheTopStandardFilters.add(new PoiLegacyFilter(null, application));
filter = new SearchByNameFilter(application);
filter.setStandardFilter(true);
cacheTopStandardFilters.add(filter);
}
return Collections.unmodifiableList(cacheTopStandardFilters);
}