Add maxspeed none

This commit is contained in:
Victor Shcherb 2013-02-17 19:04:34 +01:00
parent 4133488787
commit 539f5a531f
3 changed files with 4 additions and 1 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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(' ');