call inflater with parent
This commit is contained in:
parent
9f0bcb6d18
commit
0f5a496d76
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user