Fixed bugs in issue 935
This commit is contained in:
parent
ca04c3c1d7
commit
562447dc42
2 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue