Fix expanding
This commit is contained in:
parent
f733ad4f8a
commit
e12a5ced22
1 changed files with 3 additions and 2 deletions
|
@ -648,7 +648,8 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
if (getActivity() != null) {
|
||||
((ActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(false);
|
||||
}
|
||||
if (allGpxAdapter.getGroupCount() > 0) {
|
||||
if (allGpxAdapter.getGroupCount() > 0 &&
|
||||
allGpxAdapter.isShowingSelection()) {
|
||||
getExpandableListView().expandGroup(0);
|
||||
}
|
||||
}
|
||||
|
@ -919,7 +920,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
|||
return isShowingSelection() && groupPosition == 0;
|
||||
}
|
||||
|
||||
private boolean isShowingSelection() {
|
||||
public boolean isShowingSelection() {
|
||||
return selected.size() > 0 && !selectionMode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue