/[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 1025 by torben, Tue Aug 31 08:49:15 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 145  public class StationList extends ListAct Line 145  public class StationList extends ListAct
145          protected void onDestroy() {          protected void onDestroy() {
146                  super.onDestroy();                  super.onDestroy();
147                                    
148                  if (findStationsTask != null) {                  isRunning = false;
149                          findStationsTask.cancel(true);                  
                 }  
150                  if (locationLookup != null) {                  if (locationLookup != null) {
151                          locationLookup.stopSearch();                          locationLookup.stopSearch();
152                  }                  }
153                  isRunning = false;                  if (findStationsTask != null) {
154                            findStationsTask.cancel(true);
155                    }              
156          }          }
157    
158                    

Legend:
Removed from v.1008  
changed lines
  Added in v.1025

  ViewVC Help
Powered by ViewVC 1.1.20