delete linkMApToLocation memory for search etc. activities
This commit is contained in:
parent
d199a272ec
commit
63d3952742
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue