/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java
ViewVC logotype

Diff of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/StationDAO.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1702 by torben, Mon May 2 15:43:42 2011 UTC revision 1703 by torben, Wed Feb 29 18:48:27 2012 UTC
# Line 73  public class StationDAO { Line 73  public class StationDAO {
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>() {

Legend:
Removed from v.1702  
changed lines
  Added in v.1703

  ViewVC Help
Powered by ViewVC 1.1.20