From 0fe03b0f2108c47fc5d8527737819128c7f7f4fe Mon Sep 17 00:00:00 2001 From: "Nelson A. de Oliveira" Date: Sat, 3 Aug 2013 00:02:02 -0300 Subject: [PATCH] Remove unnecessary calls to String.valueOf() --- OsmAnd/src/net/osmand/access/NavigationInfo.java | 2 +- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 +- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/access/NavigationInfo.java b/OsmAnd/src/net/osmand/access/NavigationInfo.java index 2e4f3ccec5..5aedefd122 100644 --- a/OsmAnd/src/net/osmand/access/NavigationInfo.java +++ b/OsmAnd/src/net/osmand/access/NavigationInfo.java @@ -87,7 +87,7 @@ public class NavigationInfo { return null; if (style == RelativeDirectionStyle.CLOCKWISE) { String result = NavigationInfo.this.getString(R.string.towards); - result += " " + String.valueOf((value != 0) ? value : 12); //$NON-NLS-1$ + result += " " + ((value != 0) ? value : 12); //$NON-NLS-1$ result += " " + NavigationInfo.this.getString(R.string.oclock); //$NON-NLS-1$ return result; } else { diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 18e0c7060d..3bcfc22689 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -365,7 +365,7 @@ public class MapActivity extends AccessibleActivity { boolean changeLocation = settings.AUTO_ZOOM_MAP.get(); mapView.getAnimatedDraggingThread().startZooming(newZoom, changeLocation); if (app.getInternalAPI().accessibilityEnabled()) - AccessibleToast.makeText(this, getString(R.string.zoomIs) + " " + String.valueOf(newZoom), Toast.LENGTH_SHORT).show(); //$NON-NLS-1$ + AccessibleToast.makeText(this, getString(R.string.zoomIs) + " " + newZoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$ showAndHideMapPosition(); } diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 0389e3e46f..b6fefa8f0b 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -808,7 +808,7 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall zoomPositionChanged(newZoom); if (application.getInternalAPI().accessibilityEnabled()) { if (newZoom != initialMultiTouchZoom) { - showMessage(getContext().getString(R.string.zoomIs) + " " + String.valueOf(newZoom)); //$NON-NLS-1$ + showMessage(getContext().getString(R.string.zoomIs) + " " + newZoom); //$NON-NLS-1$ } else { final LatLon p1 = getLatLonFromScreenPoint(x1, y1); final LatLon p2 = getLatLonFromScreenPoint(x2, y2);