Add maxspeed none
This commit is contained in:
parent
4133488787
commit
539f5a531f
3 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="app_name">OsmAnd~</string>
|
||||
<string name="app_version">1.1.3 beta</string>
|
||||
<string name="app_version">1.2.0 alpha</string>
|
||||
<!-- Not translatable -->
|
||||
<string name="ga_api_key">UA-28342846-2</string>
|
||||
<string name="ga_dispatchPeriod">10</string>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
-->
|
||||
<string name="tip_recent_changes_1_2_t">Changes in 1.2:
|
||||
</string>
|
||||
<string name="mx_speed_none">none</string>
|
||||
<string name="index_name_openmaps">OpenMaps EU</string>
|
||||
<string name="download_hillshade_item">Hillshade</string>
|
||||
<string name="download_hillshade_maps">Hillshade overlays</string>
|
||||
|
|
|
@ -330,6 +330,8 @@ public class RouteInfoControls {
|
|||
cachedSpeed = mx;
|
||||
if (cachedSpeed == 0) {
|
||||
setText(null, null);
|
||||
} else if(cachedSpeed == RouteDataObject.NONE_MAX_SPEED) {
|
||||
setText(R.string.max_speed_none, "");
|
||||
} else {
|
||||
String ds = OsmAndFormatter.getFormattedSpeed(cachedSpeed, map.getMyApplication());
|
||||
int ls = ds.lastIndexOf(' ');
|
||||
|
|
Loading…
Reference in a new issue