Fixed bug when after deleting something in localindex - adapter was recreated and all open categories was closed
This commit is contained in:
parent
2b6698d7bf
commit
1ddbc8c070
1 changed files with 4 additions and 3 deletions
|
@ -388,9 +388,10 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment {
|
||||||
protected void onPostExecute(String result) {
|
protected void onPostExecute(String result) {
|
||||||
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
getDownloadActivity().setProgressBarIndeterminateVisibility(false);
|
||||||
AccessibleToast.makeText(getDownloadActivity(), result, Toast.LENGTH_LONG).show();
|
AccessibleToast.makeText(getDownloadActivity(), result, Toast.LENGTH_LONG).show();
|
||||||
listAdapter.clear();
|
if (operation == RESTORE_OPERATION){
|
||||||
reloadIndexes();
|
listAdapter.clear();
|
||||||
|
reloadIndexes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue