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

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

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

revision 906 by torben, Fri Jun 25 23:59:58 2010 UTC revision 919 by torben, Sat Jun 26 11:06:12 2010 UTC
# Line 139  public class StationList extends ListAct Line 139  public class StationList extends ListAct
139                  }                  }
140                                    
141          }          }
142            
143    
144            @Override
145            protected void onDestroy() {
146                    super.onDestroy();
147                    
148                    if (findStationsTask != null) {
149                            findStationsTask.cancel(true);
150                    }
151                    if (locationLookup != null) {
152                            locationLookup.stopSearch();
153                    }
154                    isRunning = false;
155            }
156    
157            
158          protected void setTitle() {          protected void setTitle() {
159                  String dialogTitle = getResources().getString(app_name);                  String dialogTitle = getResources().getString(app_name);
160                  switch (listType) {                  switch (listType) {
# Line 539  public class StationList extends ListAct Line 555  public class StationList extends ListAct
555                                          showMessageAndClose(getString(stationlist_nostations));                                          showMessageAndClose(getString(stationlist_nostations));
556                                  }                                  }
557                                  stations = stationProvider.getStations();                                  stations = stationProvider.getStations();
558    
559                                    StationList.this.getListView().invalidateViews();
560                                  adapter.setStations( stations );                                                                  adapter.setStations( stations );                                
561                                                                    
562                                    
563                          } else { //communication or parse errors                          } else { //communication or parse errors
564                                  AlertDialog.Builder builder = new AlertDialog.Builder(StationList.this);                                                                                  AlertDialog.Builder builder = new AlertDialog.Builder(StationList.this);                                                
565                                  builder.setMessage(getString(stationlist_fetcherror));                                                            builder.setMessage(getString(stationlist_fetcherror));                          

Legend:
Removed from v.906  
changed lines
  Added in v.919

  ViewVC Help
Powered by ViewVC 1.1.20