From aad9885f318f0e4925f473ed3a041b033f2cd1bb Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 5 Oct 2015 17:32:55 +0300 Subject: [PATCH 1/2] Commit transaction --- .../plus/download/newimplementation/DownloadsUiHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/download/newimplementation/DownloadsUiHelper.java b/OsmAnd/src/net/osmand/plus/download/newimplementation/DownloadsUiHelper.java index bcc3afb2bf..57e31789c5 100644 --- a/OsmAnd/src/net/osmand/plus/download/newimplementation/DownloadsUiHelper.java +++ b/OsmAnd/src/net/osmand/plus/download/newimplementation/DownloadsUiHelper.java @@ -78,6 +78,7 @@ public final class DownloadsUiHelper { ft.addToBackStack(null); fragment.show(ft, "dialog"); + ft.commit(); } private static class ToggleCollapseFreeVersionBanner implements View.OnClickListener { From 7fb369e09e0e25bf8650290a47ec0e9e9caad674 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 5 Oct 2015 17:33:49 +0300 Subject: [PATCH 2/2] 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);