/[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 1028 by torben, Wed Sep 8 06:25:13 2010 UTC
# Line 115  public class StationList extends ListAct Line 115  public class StationList extends ListAct
115                                    
116                  isLaunchedforShortcut = getIntent().getBooleanExtra("shortcut", false);                  isLaunchedforShortcut = getIntent().getBooleanExtra("shortcut", false);
117                                    
118                    ProviderFactory.purgeOldEntries(); //cleanup before fetching more data
119                    
120                  if (savedInstanceState == null) {                  if (savedInstanceState == null) {
121    
122                                                    
# Line 140  public class StationList extends ListAct Line 142  public class StationList extends ListAct
142                                    
143          }          }
144                    
145            
146    
147    
148    
149    
150          @Override          @Override
151          protected void onDestroy() {          protected void onDestroy() {
152                  super.onDestroy();                  super.onDestroy();
153                                    
154                  if (findStationsTask != null) {                  isRunning = false;
155                          findStationsTask.cancel(true);                  
                 }  
156                  if (locationLookup != null) {                  if (locationLookup != null) {
157                          locationLookup.stopSearch();                          locationLookup.stopSearch();
158                  }                  }
159                  isRunning = false;                  if (findStationsTask != null) {
160                            findStationsTask.cancel(true);
161                    }              
162          }          }
163    
164                    

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

  ViewVC Help
Powered by ViewVC 1.1.20