/[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 1008 by torben, Tue Aug 3 06:36:29 2010 UTC revision 1027 by torben, Wed Sep 8 06:03:45 2010 UTC
# Line 52  public class StationList extends ListAct Line 52  public class StationList extends ListAct
52          public static final int DLG_STATIONNAME = 3002;          public static final int DLG_STATIONNAME = 3002;
53                    
54                    
55          public static final int GPS_TIMEOUT_MS = 17500; //how long are we willing to wait for gps fix -in milliseconds          public static final int GPS_TIMEOUT_MS = 15000; //how long are we willing to wait for gps fix -in milliseconds
56                    
57                    
58          static enum LookupMethod {          static enum LookupMethod {
# 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.1008  
changed lines
  Added in v.1027

  ViewVC Help
Powered by ViewVC 1.1.20