style fixes

This commit is contained in:
simon 2020-09-04 16:49:24 +03:00
parent c436b1dcb8
commit d1451e9889

View file

@ -104,6 +104,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
protected static final int emptyTileDivisor = 16; protected static final int emptyTileDivisor = 16;
public interface OnTrackBallListener { public interface OnTrackBallListener {
public boolean onTrackBallEvent(MotionEvent e); public boolean onTrackBallEvent(MotionEvent e);
} }
@ -516,8 +517,8 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
public void restoreMapRatio() { public void restoreMapRatio() {
RotatedTileBox box = currentViewport.copy(); RotatedTileBox box = currentViewport.copy();
float rx = (float) box.getCenterPixelX() / box.getPixWidth(); float rx = (float)box.getCenterPixelX() / box.getPixWidth();
float ry = (float) box.getCenterPixelY() / box.getPixHeight(); float ry = (float)box.getCenterPixelY() / box.getPixHeight();
if (mapPosition == OsmandSettings.BOTTOM_CONSTANT) { if (mapPosition == OsmandSettings.BOTTOM_CONSTANT) {
ry -= 0.35; ry -= 0.35;
} }