From a9c797ebd769d95e45248352a96d8aa01120c6d5 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Mon, 9 Nov 2020 19:02:19 +0300 Subject: [PATCH] Fix #5310 --- .../net/osmand/plus/views/AnimateDraggingMapThread.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/AnimateDraggingMapThread.java b/OsmAnd/src/net/osmand/plus/views/AnimateDraggingMapThread.java index 0323498479..3df649ea2b 100644 --- a/OsmAnd/src/net/osmand/plus/views/AnimateDraggingMapThread.java +++ b/OsmAnd/src/net/osmand/plus/views/AnimateDraggingMapThread.java @@ -225,6 +225,13 @@ public class AnimateDraggingMapThread { if (!stopped) { animatingMoveInThread(mMoveX, mMoveY, animationTime, notifyListener, finishAnimationCallback); + } else if (finishAnimationCallback != null) { + tileView.getApplication().runInUIThread(new Runnable() { + @Override + public void run() { + finishAnimationCallback.run(); + } + }); } if (!stopped) { tileView.setLatLonAnimate(finalLat, finalLon, notifyListener);