Add route view distance to settings
This commit is contained in:
parent
5223c2e96d
commit
fccd11ae15
1 changed files with 6 additions and 6 deletions
|
@ -207,13 +207,13 @@ public class MapControlsLayer extends OsmandMapLayer {
|
||||||
String zoomText = tb.getZoom() + "";
|
String zoomText = tb.getZoom() + "";
|
||||||
float frac = tb.getZoomScale();
|
float frac = tb.getZoomScale();
|
||||||
if (frac != 0) {
|
if (frac != 0) {
|
||||||
zoomText += "'";
|
zoomText += ":";
|
||||||
if(frac >= 1){
|
int ifrac = ((int) frac);
|
||||||
int ifrac = ((int) frac);
|
if (frac >= 1) {
|
||||||
zoomText += ifrac;
|
zoomText += ifrac;
|
||||||
if(frac != ifrac) {
|
}
|
||||||
zoomText += "." + ((int) ((frac - ifrac) * 10f));
|
if (frac != ifrac) {
|
||||||
}
|
zoomText += "." + ((int) ((frac - ifrac) * 10f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
float length = zoomTextPaint.measureText(zoomText);
|
float length = zoomTextPaint.measureText(zoomText);
|
||||||
|
|
Loading…
Reference in a new issue