/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/TimetableList.java

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

revision 1408 by torben, Mon May 2 11:54:17 2011 UTC revision 1423 by torben, Mon May 2 17:14:29 2011 UTC
# Line 106  public class TimetableList extends ListA Line 106  public class TimetableList extends ListA
106                  super.onListItemClick(l, v, position, id);                  super.onListItemClick(l, v, position, id);
107    
108                  TimetableEntry tt = timetables.entries.get(position);                  TimetableEntry tt = timetables.entries.get(position);
109                                                                    
                 StationEntry station = new StationEntry();  
                 station.setName( tt.getStation() );  
                 station.setId( tt.getStationId() );  
                 station.setIsRegional(true);  
                   
110                                    
111                  Intent intent = new Intent(this, DepartureList.class);                  Intent intent = new Intent(this, DepartureList.class);
112                  intent.putExtra("stationbean", station);                  intent.putExtra("stationbean", tt.getStationEntry() );
113                  startActivity(intent);                  startActivity(intent);
114                                    
115          }          }
# Line 186  public class TimetableList extends ListA Line 181  public class TimetableList extends ListA
181                          super.onPostExecute(result);                          super.onPostExecute(result);
182                          dismissDialog(DLG_PROGRESS);                          dismissDialog(DLG_PROGRESS);
183                    
184                          //TODO: differentiate between a communication error and a downed bane.dk site    
185                          if (timetables != null && timetables.errorCode == null) {                          if (timetables != null && timetables.errorCode == null) {
186                                  commFailCounter = 0;                                  commFailCounter = 0;
187                                  TimetableList.this.getListView().invalidateViews();                                  TimetableList.this.getListView().invalidateViews();

Legend:
Removed from v.1408  
changed lines
  Added in v.1423

  ViewVC Help
Powered by ViewVC 1.1.20