Fixed bug when after deleting something in localindex - adapter was recreated and all open categories was closed
This commit is contained in:
parent
5073e82918
commit
d06e883dd1
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();
|
||||||
|
if (operation == RESTORE_OPERATION){
|
||||||
listAdapter.clear();
|
listAdapter.clear();
|
||||||
reloadIndexes();
|
reloadIndexes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue