This commit is contained in:
GaidamakUA 2015-10-05 17:35:42 +03:00
commit 5c35eb98a8
2 changed files with 3 additions and 0 deletions

View file

@ -254,12 +254,14 @@ public class RegionItemsFragment extends OsmandExpandableListFragment {
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
View v = convertView; View v = convertView;
String section = getGroup(groupPosition); String section = getGroup(groupPosition);
/*
if (section.length() == 0) { if (section.length() == 0) {
LinearLayout emptyLL = new LinearLayout(parent.getContext()); LinearLayout emptyLL = new LinearLayout(parent.getContext());
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0);
emptyLL.setLayoutParams(params); emptyLL.setLayoutParams(params);
return emptyLL; return emptyLL;
} }
*/
if (v == null) { if (v == null) {
LayoutInflater inflater = (LayoutInflater) getDownloadActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE); LayoutInflater inflater = (LayoutInflater) getDownloadActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

View file

@ -78,6 +78,7 @@ public final class DownloadsUiHelper {
ft.addToBackStack(null); ft.addToBackStack(null);
fragment.show(ft, "dialog"); fragment.show(ft, "dialog");
ft.commit();
} }
private static class ToggleCollapseFreeVersionBanner implements View.OnClickListener { private static class ToggleCollapseFreeVersionBanner implements View.OnClickListener {