Skip to content

Commit

Permalink
bug osmdroid#1299: Zoom Button Crash in 6.1.0
Browse files Browse the repository at this point in the history
fix StackOverflow, because when zooming in with zoom buttons,
osm tries to keep the map centered to the current user location.
See: org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.onSnapToItem
  • Loading branch information
shorti1996 committed Mar 30, 2019
1 parent 0278752 commit 8b77ec6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -164,7 +164,7 @@ public void animateTo(final IGeoPoint point, final Double pZoom, final Long pSpe
}

if (mCurrentAnimator != null) {
mCurrentAnimator.end();
mapAnimatorListener.onAnimationCancel(mCurrentAnimator);
}
mCurrentAnimator = mapAnimator;
mapAnimator.start();
Expand Down

0 comments on commit 8b77ec6

Please sign in to comment.