73 |
for(JdoStationBean bean : beanList) { |
for(JdoStationBean bean : beanList) { |
74 |
if (bean.getName().toLowerCase().startsWith(searchname)) { |
if (bean.getName().toLowerCase().startsWith(searchname)) { |
75 |
stationBean.entries.add( bean.toStationEntry() ); |
stationBean.entries.add( bean.toStationEntry() ); |
76 |
} else { |
} /*else { |
77 |
for (String alias : bean.aliases ) { |
for (String alias : bean.aliases ) { |
78 |
if (alias.toLowerCase().startsWith(searchname)) { |
if (alias.toLowerCase().startsWith(searchname)) { |
79 |
stationBean.entries.add( bean.toStationEntry() ); |
stationBean.entries.add( bean.toStationEntry() ); |
80 |
} |
} |
81 |
} |
} |
82 |
} |
}*/ |
83 |
} |
} |
84 |
|
|
85 |
Collections.sort(stationBean.entries, new Comparator<StationEntry>() { |
Collections.sort(stationBean.entries, new Comparator<StationEntry>() { |