Merge pull request #4164 from osmandapp/alex_fixes

Alex fixes
This commit is contained in:
vshcherb 2017-07-21 15:13:54 +02:00 committed by GitHub
commit a92f8b5db5
2 changed files with 3 additions and 2 deletions

View file

@ -199,7 +199,8 @@ public class MapViewTrackingUtilities implements OsmAndLocationListener, IMapLoc
showViewAngle = routePlanningMode; // disable compass rotation in that mode showViewAngle = routePlanningMode; // disable compass rotation in that mode
} }
registerUnregisterSensor(location); registerUnregisterSensor(location);
if (settings.ANIMATE_MY_LOCATION.get() && !smallSpeedForAnimation && !movingToMyLocation) { if (settings.ANIMATE_MY_LOCATION.get() && !smallSpeedForAnimation && !movingToMyLocation &&
settings.WAKE_ON_VOICE_INT.get() == 0) {
mapView.getAnimatedDraggingThread().startMoving( mapView.getAnimatedDraggingThread().startMoving(
location.getLatitude(), location.getLongitude(), zoom, rotation, false); location.getLatitude(), location.getLongitude(), zoom, rotation, false);
} else { } else {

View file

@ -189,7 +189,7 @@ public class MapillaryPlugin extends OsmandPlugin {
private TextInfoWidget createMonitoringControl(final MapActivity map) { private TextInfoWidget createMonitoringControl(final MapActivity map) {
mapillaryControl = new TextInfoWidget(map); mapillaryControl = new TextInfoWidget(map);
mapillaryControl.setText("", map.getString(R.string.mapillary)); mapillaryControl.setText(map.getString(R.string.mapillary), "");
mapillaryControl.setIcons(R.drawable.widget_mapillary_day, R.drawable.widget_mapillary_night); mapillaryControl.setIcons(R.drawable.widget_mapillary_day, R.drawable.widget_mapillary_night);
mapillaryControl.setOnClickListener(new View.OnClickListener() { mapillaryControl.setOnClickListener(new View.OnClickListener() {
@Override @Override