Fixed bug when after deleting something in localindex - adapter was recreated and all open categories was closed

This commit is contained in:
Denis 2014-11-17 14:30:15 +02:00
parent 5073e82918
commit d06e883dd1

View file

@ -388,9 +388,10 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
protected void onPostExecute(String result) {
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
AccessibleToast.makeText(getDownloadActivity(), result, Toast.LENGTH_LONG).show();
listAdapter.clear();
reloadIndexes();
if (operation == RESTORE_OPERATION){
listAdapter.clear();
reloadIndexes();
}
}
}