From d1451e988903b76ec7520170a3fc829be2eac4f6 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 4 Sep 2020 16:49:24 +0300 Subject: [PATCH] style fixes --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 999d05238f..260f30fa50 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -104,6 +104,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { protected static final int emptyTileDivisor = 16; + public interface OnTrackBallListener { public boolean onTrackBallEvent(MotionEvent e); } @@ -516,8 +517,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback { public void restoreMapRatio() { RotatedTileBox box = currentViewport.copy(); - float rx = (float) box.getCenterPixelX() / box.getPixWidth(); - float ry = (float) box.getCenterPixelY() / box.getPixHeight(); + float rx = (float)box.getCenterPixelX() / box.getPixWidth(); + float ry = (float)box.getCenterPixelY() / box.getPixHeight(); if (mapPosition == OsmandSettings.BOTTOM_CONSTANT) { ry -= 0.35; }