Small fixes

This commit is contained in:
Victor Shcherb 2011-05-03 21:26:40 +02:00
parent cb5495e21d
commit 90821ab59c
2 changed files with 2 additions and 2 deletions

View file

@ -467,7 +467,7 @@
<string name="favourites_context_menu_delete">Delete favorite</string>
<string name="favourites_edit_dialog_title">Rename favorite</string>
<string name="favourites_remove_dialog_title">Are you sure?</string>
<string name="favourites_remove_dialog_title">Are you sure about removing favourite point?</string>
<string name="favourites_remove_dialog_success">Favourite point {0} was succesfully deleted.</string>
<string name="osb_add_dialog_title">Enter bug text</string>

View file

@ -29,7 +29,7 @@ public class OsmAndFormatter {
}
if (meters >= 100 * mainUnitInMeters) {
return meters / mainUnitInMeters + " " + ctx.getString(mainUnitStr); //$NON-NLS-1$
return ((int) meters / mainUnitInMeters) + " " + ctx.getString(mainUnitStr); //$NON-NLS-1$
} else if (meters > 1.5f * mainUnitInMeters) {
return MessageFormat.format("{0,number,#.#} " + ctx.getString(mainUnitStr), ((float) meters) / mainUnitInMeters); //$NON-NLS-1$
} else if (meters > 0.9f * mainUnitInMeters) {