From 7fb369e09e0e25bf8650290a47ec0e9e9caad674 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 5 Oct 2015 17:33:49 +0300 Subject: [PATCH] Fix LinearLayout in downloads --- .../src/net/osmand/plus/download/items/RegionItemsFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/items/RegionItemsFragment.java b/OsmAnd/src/net/osmand/plus/download/items/RegionItemsFragment.java index a1924aaa90..98608bcad0 100644 --- a/OsmAnd/src/net/osmand/plus/download/items/RegionItemsFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/items/RegionItemsFragment.java @@ -262,12 +262,14 @@ public class RegionItemsFragment extends OsmandExpandableListFragment { public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { View v = convertView; String section = getGroup(groupPosition); + /* if (section.length() == 0) { LinearLayout emptyLL = new LinearLayout(parent.getContext()); LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0); emptyLL.setLayoutParams(params); return emptyLL; } + */ if (v == null) { LayoutInflater inflater = (LayoutInflater) getDownloadActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);