Fix #3674; fix text in mapillary widget

This commit is contained in:
Alexander Sytnyk 2017-07-21 15:09:51 +03:00
parent a039a400cf
commit 54cd71b4b1
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