/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java

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

revision 1019 by torben, Wed Jul 14 19:22:23 2010 UTC revision 1020 by torben, Mon Aug 30 11:53:34 2010 UTC
# Line 128  public class DepartureFetcher { Line 128  public class DepartureFetcher {
128              if (table != null) {              if (table != null) {
129                      Elements tableRows =  table.getElementsByTag("tr");                      Elements tableRows =  table.getElementsByTag("tr");
130                                            
131                        boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0);
132                        boolean passedTidsstreg = false;
133                        
134                      for (Element currentRow : tableRows) {                      for (Element currentRow : tableRows) {
135                          String rowClass = currentRow.attr("class");                          String rowClass = currentRow.attr("class");
136                            
137                            if (tidsstregExists == true && passedTidsstreg == false) {
138                                    if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) {
139                                            passedTidsstreg = true;
140                                    } else {
141                                            continue;
142                                    }
143                            }
144                            
145                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {
146                                    
147                                  Elements fields = currentRow.getElementsByTag("td");                                  Elements fields = currentRow.getElementsByTag("td");
148                    
149                                  DepartureEntry departure = new DepartureEntry();                                  DepartureEntry departure = new DepartureEntry();

Legend:
Removed from v.1019  
changed lines
  Added in v.1020

  ViewVC Help
Powered by ViewVC 1.1.20