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 |
} |
} |
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(); |