/[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 1006 by torben, Sat Jul 10 16:03:10 2010 UTC revision 1007 by torben, Tue Aug 3 06:12:10 2010 UTC
# Line 135  public class TimetableList extends ListA Line 135  public class TimetableList extends ListA
135                    
136          class TimetableFetcher extends AsyncTask<String,Void,Void> {          class TimetableFetcher extends AsyncTask<String,Void,Void> {
137                                    
                 boolean success;  
138                                    
139                  @Override                  @Override
140                  protected void onPostExecute(Void result) {                  protected void onPostExecute(Void result) {
# Line 143  public class TimetableList extends ListA Line 142  public class TimetableList extends ListA
142                          dismissDialog(DLG_PROGRESS);                          dismissDialog(DLG_PROGRESS);
143                    
144                                                    
145                          if (success) {                          if (timetables != null) {
146                                  TimetableList.this.getListView().invalidateViews();                                  TimetableList.this.getListView().invalidateViews();
147                                  adapter.setTimetable(timetables);                                  adapter.setTimetable(timetables);
148                                  if (timetables.size() == 0) {                                  if (timetables.size() == 0) {
# Line 181  public class TimetableList extends ListA Line 180  public class TimetableList extends ListA
180                  protected Void doInBackground(String... arg0) {                  protected Void doInBackground(String... arg0) {
181                          String type = arg0[0];                          String type = arg0[0];
182                          String trainID = arg0[1];                          String trainID = arg0[1];
183                          success = provider.lookupTimetable(type, trainID);                          timetables = provider.lookupTimetable(type, trainID);
                         timetables = provider.getTimetable(type, trainID);  
184                                                    
185                          return null;                          return null;
186                  }                  }

Legend:
Removed from v.1006  
changed lines
  Added in v.1007

  ViewVC Help
Powered by ViewVC 1.1.20