Fix small issues

This commit is contained in:
Victor Shcherb 2015-04-25 00:07:28 +02:00
parent 7e227a51da
commit 4d9021f92e
2 changed files with 4 additions and 3 deletions

View file

@ -198,9 +198,7 @@ public class MapActivity extends AccessibleActivity {
System.err.println("OnCreate for MapActivity took " + (System.currentTimeMillis() - tm) + " ms"); System.err.println("OnCreate for MapActivity took " + (System.currentTimeMillis() - tm) + " ms");
} }
mapView.refreshMap(true); mapView.refreshMap(true);
if(dashboardOnMap != null) { dashboardOnMap.updateLocation(true, true, false);
dashboardOnMap.updateLocation(true, true, false);
}
} }
private void checkAppInitialization() { private void checkAppInitialization() {

View file

@ -174,6 +174,9 @@ public class FailSafeFuntions {
routingHelper.setFollowingMode(true); routingHelper.setFollowingMode(true);
app.getTargetPointsHelper().updateRouteAndReferesh(true); app.getTargetPointsHelper().updateRouteAndReferesh(true);
app.initVoiceCommandPlayer(ma); app.initVoiceCommandPlayer(ma);
if(ma.getDashboard().isVisible()) {
ma.getDashboard().hideDashboard();
}
} }
private static void notRestoreRoutingMode(MapActivity ma, OsmandApplication app){ private static void notRestoreRoutingMode(MapActivity ma, OsmandApplication app){