Fixed bugs in issue 935

This commit is contained in:
Pavol Zibrita 2012-03-20 02:01:15 +01:00
parent ca04c3c1d7
commit 562447dc42
2 changed files with 5 additions and 3 deletions

View file

@ -391,8 +391,10 @@ public class OsmandApplication extends Application {
uiHandler.post(new Runnable() {
@Override
public void run() {
if (toDismiss.getOwnerActivity() != null) {
toDismiss.getOwnerActivity().dismissDialog(PROGRESS_DIALOG);
if (toDismiss != null) {
//TODO handling this dialog is bad, we need a better standard way
toDismiss.dismiss();
// toDismiss.getOwnerActivity().dismissDialog(PROGRESS_DIALOG);
}
}
});

View file

@ -115,7 +115,7 @@ public class RoutingHelper {
}
public void clearCurrentRoute(LatLon newFinalLocation) {
public synchronized void clearCurrentRoute(LatLon newFinalLocation) {
this.routeNodes.clear();
listDistance = null;
directionInfo = null;