From 3432ff0cfb7f12c5cbabea2b3bf0ca6ca217c97d Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 29 Dec 2016 12:54:21 +0100 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java index 02115759f6..50ce30ad04 100644 --- a/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java +++ b/OsmAnd/src/net/osmand/plus/views/OsmandMapTileView.java @@ -1108,7 +1108,7 @@ public class OsmandMapTileView implements IMapDownloaderCallback { @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { - if (e2.getAction() & 255) == MotionEvent.ACTION_MOVE { + if ((e2.getAction() & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_MOVE) { dragToAnimate(e2.getX() + distanceX, e2.getY() + distanceY, e2.getX(), e2.getY(), true); } return true;