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() + "";
|
||||
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));
|
||||
}
|
||||
if (frac != ifrac) {
|
||||
zoomText += "." + ((int) ((frac - ifrac) * 10f));
|
||||
}
|
||||
}
|
||||
float length = zoomTextPaint.measureText(zoomText);
|
||||
|
|
Loading…
Reference in a new issue