178 |
protected void onDestroy() { |
protected void onDestroy() { |
179 |
super.onDestroy(); |
super.onDestroy(); |
180 |
|
|
181 |
|
stationsFetched.removeMessages(0); |
182 |
|
|
183 |
|
|
184 |
if (locationLookup != null) { |
if (locationLookup != null) { |
185 |
locationLookup.stopSearch(); |
locationLookup.stopSearch(); |
451 |
MessageBox.showMessage(StationList.this, getString(stationlist_nolocationprovider), true ); |
MessageBox.showMessage(StationList.this, getString(stationlist_nolocationprovider), true ); |
452 |
//StationList.this.finish(); |
//StationList.this.finish(); |
453 |
return; |
return; |
454 |
|
case IDLE: |
455 |
|
Log.e("TrainInfo", "How did this happen ???"); |
456 |
|
dismissDialog(DLG_PROGRESS); // how did we get here ?? |
457 |
|
return; |
458 |
|
|
459 |
} |
} |
460 |
|
|
461 |
|
|
462 |
|
|
463 |
if (locationLookup.elapsedTime() >= GPS_TIMEOUT_MS) { |
if (locationLookup.elapsedTime() >= GPS_TIMEOUT_MS) { |
464 |
try { |
dismissDialog(DLG_PROGRESS); |
465 |
dismissDialog(DLG_PROGRESS); |
|
|
} catch (IllegalArgumentException ex) { |
|
|
// I get stacktraces that reports an exception is thrown here - |
|
|
// but i can not recreate the situation that causes said exception |
|
|
Log.e("TrainInfo", "Why the f*** is this exception thrown here ?? " + ex.getMessage() ); |
|
|
} |
|
466 |
|
|
467 |
locationLookup.stopSearch(); |
locationLookup.stopSearch(); |
468 |
|
|