Skip to content

Commit

Permalink
Closes pakerfeldt#66
Browse files Browse the repository at this point in the history
  • Loading branch information
pakerfeldt committed Apr 27, 2012
1 parent 49c4fd8 commit a7936b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion viewflow/src/org/taptwo/android/widget/ViewFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,9 @@ private View makeAndAddView(int position, boolean addToEnd) {

private View makeAndAddView(int position, boolean addToEnd, View convertView) {
View view = mAdapter.getView(position, convertView, this);
return setupChild(view, addToEnd, convertView != null);
if(view != convertView)
mRecycledViews.add(convertView);
return setupChild(view, addToEnd, view == convertView);
}

class AdapterDataSetObserver extends DataSetObserver {
Expand Down

0 comments on commit a7936b0

Please sign in to comment.