call inflater with parent

This commit is contained in:
Adrian Ulrich 2016-07-24 16:00:23 +02:00
parent 9f0bcb6d18
commit 0f5a496d76
3 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ public class FileSystemAdapter
ViewHolder holder;
if (convertView == null) {
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, null);
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, parent, false);
row.setupLayout(DraggableRow.LAYOUT_LISTVIEW);
holder = new ViewHolder();

View File

@ -46,7 +46,7 @@ public class FilebrowserStartAdapter
ViewHolder holder;
if (convertView == null) {
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, null);
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, parent, false);
row.setupLayout(DraggableRow.LAYOUT_LISTVIEW);
row.getCoverView().setImageResource(R.drawable.folder);

View File

@ -516,7 +516,7 @@ public class MediaAdapter
if (convertView == null) {
// We must create a new view if we're not given a recycle view or
// if the recycle view has the wrong layout.
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, null);
row = (DraggableRow)mInflater.inflate(R.layout.draggable_row, parent, false);
row.setupLayout(DraggableRow.LAYOUT_LISTVIEW);
holder = new ViewHolder();