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) {
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);

View file

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