Merge pull request #490 from naoliv/pull13

Remove unnecessary calls to String.valueOf()
This commit is contained in:
vshcherb 2013-08-05 10:51:23 -07:00
commit 0178d52dcd
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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