Merge pull request #504 from betheg/inflate
add false argument to inflate.
This commit is contained in:
commit
4a9ed0e208
|
@ -24,7 +24,7 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
|
||||||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
ListItem item = getItem(position);
|
ListItem item = getItem(position);
|
||||||
if (view == null) {
|
if (view == null) {
|
||||||
view = (View) inflater.inflate(R.layout.contact, parent);
|
view = (View) inflater.inflate(R.layout.contact, parent, false);
|
||||||
}
|
}
|
||||||
TextView name = (TextView) view.findViewById(R.id.contact_display_name);
|
TextView name = (TextView) view.findViewById(R.id.contact_display_name);
|
||||||
TextView jid = (TextView) view.findViewById(R.id.contact_jid);
|
TextView jid = (TextView) view.findViewById(R.id.contact_jid);
|
||||||
|
@ -36,4 +36,4 @@ public class ListItemAdapter extends ArrayAdapter<ListItem> {
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue