/[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 840 by torben, Fri Jun 11 18:46:46 2010 UTC revision 917 by torben, Sat Jun 26 10:50:34 2010 UTC
# Line 137  public class TimetableList extends ListA Line 137  public class TimetableList extends ListA
137                    
138                                                    
139                          if (success) {                          if (success) {
140                                    TimetableList.this.getListView().invalidateViews();
141                                  adapter.setTimetable(timetables);                                  adapter.setTimetable(timetables);
142                                  if (timetables.size() == 0) {                                  if (timetables.size() == 0) {
143                                          MessageBox.showMessage(TimetableList.this, getString(timetablelist_nodata));                                          MessageBox.showMessage(TimetableList.this, getString(timetablelist_nodata), true);
144                                  }                                  }
145                          } else { // communication or parse error                          } else { // communication or parse error
146                                  AlertDialog.Builder builder = new AlertDialog.Builder(TimetableList.this);                                                                                AlertDialog.Builder builder = new AlertDialog.Builder(TimetableList.this);                                              
# Line 155  public class TimetableList extends ListA Line 156  public class TimetableList extends ListA
156                                  builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() {                                  builder.setNegativeButton(getString(generic_cancel), new DialogInterface.OnClickListener() {
157                                          public void onClick(DialogInterface dialog, int id) {                                          public void onClick(DialogInterface dialog, int id) {
158                                                  dialog.dismiss();                                                  dialog.dismiss();
159                                                    TimetableList.this.finish();
160                                          }                                                                                                }                                                      
161                                  });                                  });
162                                                                    

Legend:
Removed from v.840  
changed lines
  Added in v.917

  ViewVC Help
Powered by ViewVC 1.1.20