From a43a077111a04b6956c4e62843c22cbd76d8f939 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 1 Nov 2015 14:53:47 +0100 Subject: [PATCH] Fix --- .../net/osmand/plus/download/ui/popups/GoToMapFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/popups/GoToMapFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/popups/GoToMapFragment.java index 74163b0d98..e05cb2d136 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/popups/GoToMapFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/popups/GoToMapFragment.java @@ -72,6 +72,9 @@ public class GoToMapFragment extends DialogFragment { closeImageButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + if(getActivity() instanceof DownloadActivity) { + ((DownloadActivity) getActivity()).setDownloadItem(null); + } dismiss(); } });