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 2b6698d7bf
commit 1ddbc8c070

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();
}
}
}