/[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 843 by torben, Sun Jun 13 13:45:37 2010 UTC revision 918 by torben, Sat Jun 26 11:02:53 2010 UTC
# Line 67  public class TimetableList extends ListA Line 67  public class TimetableList extends ListA
67                          adapter.setTimetable(timetables);                          adapter.setTimetable(timetables);
68                  }                  }
69          }          }
70            
71            @Override
72            protected void onDestroy() {
73                    super.onDestroy();
74                    
75                    if (fetcher != null) {
76                            fetcher.cancel(true);
77                    }
78            }
79                    
80      @Override      @Override
81          protected void onListItemClick(ListView l, View v, int position, long id) {          protected void onListItemClick(ListView l, View v, int position, long id) {
# Line 137  public class TimetableList extends ListA Line 145  public class TimetableList extends ListA
145                    
146                                                    
147                          if (success) {                          if (success) {
148                                    TimetableList.this.getListView().invalidateViews();
149                                  adapter.setTimetable(timetables);                                  adapter.setTimetable(timetables);
150                                  if (timetables.size() == 0) {                                  if (timetables.size() == 0) {
151                                          MessageBox.showMessage(TimetableList.this, getString(timetablelist_nodata));                                          MessageBox.showMessage(TimetableList.this, getString(timetablelist_nodata), true);
152                                  }                                  }
153                          } else { // communication or parse error                          } else { // communication or parse error
154                                  AlertDialog.Builder builder = new AlertDialog.Builder(TimetableList.this);                                                                                AlertDialog.Builder builder = new AlertDialog.Builder(TimetableList.this);                                              

Legend:
Removed from v.843  
changed lines
  Added in v.918

  ViewVC Help
Powered by ViewVC 1.1.20