Add route view distance to settings

This commit is contained in:
vshcherb 2013-10-06 22:46:55 +03:00
parent 5223c2e96d
commit fccd11ae15

View file

@ -207,15 +207,15 @@ public class MapControlsLayer extends OsmandMapLayer {
String zoomText = tb.getZoom() + "";
float frac = tb.getZoomScale();
if (frac != 0) {
zoomText += "'";
if(frac >= 1){
zoomText += ":";
int ifrac = ((int) frac);
if (frac >= 1) {
zoomText += ifrac;
}
if (frac != ifrac) {
zoomText += "." + ((int) ((frac - ifrac) * 10f));
}
}
}
float length = zoomTextPaint.measureText(zoomText);
if (zoomShadow.getBounds().width() == 0) {
zoomShadow.setBounds(zoomInButton.getLeft() - 2, zoomInButton.getTop() - (int) (18 * scaleCoefficient), zoomInButton.getRight(),