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 |
|
|