This commit is contained in:
Alex Sytnyk 2018-07-23 13:56:51 +03:00
parent f762dce62d
commit ffb9db6913

View file

@ -880,6 +880,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
@Override
protected void onPreExecute() {
((OsmandActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(true);
listView.setEmptyView(null);
allGpxAdapter.clear();
}
@ -913,6 +914,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
if (getActivity() != null) {
((OsmandActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(false);
}
listView.setEmptyView(emptyView);
if (allGpxAdapter.getGroupCount() > 0 &&
allGpxAdapter.isShowingSelection()) {
getExpandableListView().expandGroup(0);