52 |
startLookup(); |
startLookup(); |
53 |
} else { |
} else { |
54 |
stations = (ArrayList<StationBean>) savedInstanceState.getSerializable("stations"); |
stations = (ArrayList<StationBean>) savedInstanceState.getSerializable("stations"); |
55 |
adapter.setStations(new ArrayList<StationBean>(stations)); |
adapter.setStations(stations); |
56 |
} |
} |
57 |
} |
} |
58 |
|
|
124 |
dialog.dismiss(); |
dialog.dismiss(); |
125 |
if (isRunning) { |
if (isRunning) { |
126 |
locator.abortLocationListener(); |
locator.abortLocationListener(); |
127 |
MessageBox.showMessage(TrainInfoList.this,"GPS fix timed out"); |
if (locator.hasLocation()) { |
128 |
|
msg.what = GOTLOCATION; |
129 |
|
handleMessage( msg ); // ToDo: ugly recursive call !!! |
130 |
|
} else { |
131 |
|
MessageBox.showMessage(TrainInfoList.this,"GPS fix timed out"); |
132 |
|
} |
133 |
} |
} |
134 |
break; |
break; |
135 |
case LOOKUPSTATIONFAILED: |
case LOOKUPSTATIONFAILED: |