/[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 1019 by torben, Wed Aug 25 06:18:13 2010 UTC revision 1027 by torben, Wed Sep 8 06:03:45 2010 UTC
# Line 140  public class StationList extends ListAct Line 140  public class StationList extends ListAct
140                                    
141          }          }
142                    
143            
144            
145    
146            @Override
147            protected void onStart() {
148                    super.onStart();
149                    ProviderFactory.purgeOldEntries();
150            }
151    
152    
153    
154    
155          @Override          @Override
156          protected void onDestroy() {          protected void onDestroy() {
157                  super.onDestroy();                  super.onDestroy();
158                                    
159                  if (findStationsTask != null) {                  isRunning = false;
160                          findStationsTask.cancel(true);                  
                 }  
161                  if (locationLookup != null) {                  if (locationLookup != null) {
162                          locationLookup.stopSearch();                          locationLookup.stopSearch();
163                  }                  }
164                  isRunning = false;                  if (findStationsTask != null) {
165                            findStationsTask.cancel(true);
166                    }              
167          }          }
168    
169                    

Legend:
Removed from v.1019  
changed lines
  Added in v.1027

  ViewVC Help
Powered by ViewVC 1.1.20