/[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 1187 by torben, Thu Sep 16 15:30:27 2010 UTC revision 1188 by torben, Mon Nov 8 12:39:27 2010 UTC
# Line 145  public class DepartureFetcher { Line 145  public class DepartureFetcher {
145              if (table != null) {              if (table != null) {
146                      Elements tableRows =  table.getElementsByTag("tr");                      Elements tableRows =  table.getElementsByTag("tr");
147                                            
148                      boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0);                      //boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0);
149                      boolean passedTidsstreg = false;                      //boolean passedTidsstreg = false;
150                                            
151                      for (Element currentRow : tableRows) {                      for (Element currentRow : tableRows) {
152                          String rowClass = currentRow.attr("class");                          String rowClass = currentRow.attr("class");
153                                                    /*
154                          if (tidsstregExists == true && passedTidsstreg == false) {                          if (tidsstregExists == true && passedTidsstreg == false) {
155                                  if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) {                                  if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) {
156                                          passedTidsstreg = true;                                          passedTidsstreg = true;
157                                  } else {                                  } else {
158                                          continue;                                          continue;
159                                  }                                  }
160                          }                          }*/
161                                                    
162                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {
163                                                                    
# Line 253  public class DepartureFetcher { Line 253  public class DepartureFetcher {
253              if (table != null) {              if (table != null) {
254                      Elements tableRows =  table.getElementsByTag("tr");                      Elements tableRows =  table.getElementsByTag("tr");
255                                            
256                      boolean passedTidsstreg = false;                      //boolean passedTidsstreg = false;
257                      boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0);                      //boolean tidsstregExists = (table.getElementsByAttributeValue("class", "Tidsstreg").size() > 0);
258                                            
259                      for (Element currentRow : tableRows) {                      for (Element currentRow : tableRows) {
260                          String rowClass = currentRow.attr("class");                          String rowClass = currentRow.attr("class");
261                                                    /*
262                          if (tidsstregExists == true && passedTidsstreg == false) {                          if (tidsstregExists == true && passedTidsstreg == false) {
263                                  if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) {                                  if (currentRow.getElementsByAttributeValue("class", "Tidsstreg").size() > 0) {
264                                          passedTidsstreg = true;                                          passedTidsstreg = true;
265                                  } else {                                  } else {
266                                          continue;                                          continue;
267                                  }                                  }
268                          }                          }*/
269                                                    
270                                                    
271                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {                          if (rowClass != null && rowClass.toLowerCase().contains("station") ) {

Legend:
Removed from v.1187  
changed lines
  Added in v.1188

  ViewVC Help
Powered by ViewVC 1.1.20