From e9f9b0ae9b821327b87dc9ce017fa36a30274d9b Mon Sep 17 00:00:00 2001 From: Bars107 Date: Tue, 17 Feb 2015 18:19:35 +0200 Subject: [PATCH] Fixed thread safety --- OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java index c339031fd8..700012b4a9 100644 --- a/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/LocalIndexesFragment.java @@ -490,6 +490,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment { if(operationTask != null){ operationTask.cancel(true); } + if(descriptionLoader != null){ + descriptionLoader.cancel(true); + } } @Override @@ -996,7 +999,6 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment { sizeText.setVisibility(View.GONE); } TextView descr = ((TextView) v.findViewById(R.id.local_index_descr)); - descr.setVisibility(View.VISIBLE); descr.setText(child.getDescription());