Fixed thread safety
This commit is contained in:
parent
9a60e053fa
commit
e9f9b0ae9b
1 changed files with 3 additions and 1 deletions
|
@ -490,6 +490,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
if(operationTask != null){
|
if(operationTask != null){
|
||||||
operationTask.cancel(true);
|
operationTask.cancel(true);
|
||||||
}
|
}
|
||||||
|
if(descriptionLoader != null){
|
||||||
|
descriptionLoader.cancel(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -996,7 +999,6 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
sizeText.setVisibility(View.GONE);
|
sizeText.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
TextView descr = ((TextView) v.findViewById(R.id.local_index_descr));
|
TextView descr = ((TextView) v.findViewById(R.id.local_index_descr));
|
||||||
|
|
||||||
descr.setVisibility(View.VISIBLE);
|
descr.setVisibility(View.VISIBLE);
|
||||||
descr.setText(child.getDescription());
|
descr.setText(child.getDescription());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue