Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Closes #66

  • Loading branch information...
commit a7936b0e7aa6eed4047c138bdf3a244495cb6640 1 parent 49c4fd8
@pakerfeldt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 viewflow/src/org/taptwo/android/widget/ViewFlow.java
View
4 viewflow/src/org/taptwo/android/widget/ViewFlow.java
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.