Merge "Disable view recycling to avoid passing wrong type of view to Item.bindView()." into nyc-dev am: a5dd3f3 am: 105fba9
am: f6b562d
* commit 'f6b562d20d64f4f7e8d7ad9f83e27a01f2aa807f':
Disable view recycling to avoid passing wrong type of view to Item.bindView().
Change-Id: I9729d7de6472991054645ad6c61b8703730c0c8c
This commit is contained in:
@@ -227,10 +227,11 @@ public class RootsFragment extends Fragment {
|
||||
}
|
||||
|
||||
public View getView(View convertView, ViewGroup parent) {
|
||||
if (convertView == null) {
|
||||
convertView = LayoutInflater.from(parent.getContext())
|
||||
// Disable recycling views because 1) it's very unlikely a view can be recycled here;
|
||||
// 2) there is no easy way for us to know with which layout id the convertView was
|
||||
// inflated; and 3) simplicity is much appreciated at this time.
|
||||
convertView = LayoutInflater.from(parent.getContext())
|
||||
.inflate(mLayoutId, parent, false);
|
||||
}
|
||||
bindView(convertView);
|
||||
return convertView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user