Add touch cancel processing

This commit is contained in:
Alexander Sytnyk 2017-07-28 11:39:07 +03:00 committed by Alexey Kulish
parent ef30de5ecd
commit c5b82a136c

View file

@ -156,7 +156,7 @@ public class RulerControlLayer extends OsmandMapLayer {
if (d > acceptableTouchRadius) {
touchOutside = true;
}
} else if (event.getAction() == MotionEvent.ACTION_UP) {
} else if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_CANCEL) {
touched = false;
touchEndTime = System.currentTimeMillis();
refreshMapDelayed();