From 63d3952742b8f46489a648de4cebc1fdd08bc672 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 14 Oct 2012 12:29:11 +0200 Subject: [PATCH] delete linkMApToLocation memory for search etc. activities --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 071cff391e..c1e405e834 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -1282,6 +1282,7 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe @Override public void locationChanged(double newLatitude, double newLongitude, Object source) { // when user start dragging + linkMapToLocation = false; if(mapLayers.getLocationLayer().getLastKnownLocation() != null){ setMapLinkedToLocation(false); if (!mapLayers.getMapInfoLayer().getBackToLocation().isEnabled()) { @@ -1383,6 +1384,7 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe } public static void launchMapActivityMoveToTop(Context activity){ + linkMapToLocation = false; Intent newIntent = new Intent(activity, OsmandIntents.getMapActivity()); newIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); activity.startActivity(newIntent);