Skip to content
This repository
Browse code

Closes #66

  • Loading branch information...
commit a7936b0e7aa6eed4047c138bdf3a244495cb6640 1 parent 49c4fd8
Patrik Åkerfeldt authored April 27, 2012
4  viewflow/src/org/taptwo/android/widget/ViewFlow.java
@@ -696,7 +696,9 @@ private View makeAndAddView(int position, boolean addToEnd) {
696 696
 
697 697
 	private View makeAndAddView(int position, boolean addToEnd, View convertView) {
698 698
 		View view = mAdapter.getView(position, convertView, this);
699  
-		return setupChild(view, addToEnd, convertView != null);
  699
+		if(view != convertView)
  700
+			mRecycledViews.add(convertView);
  701
+		return setupChild(view, addToEnd, view == convertView);
700 702
 	}
701 703
 
702 704
 	class AdapterDataSetObserver extends DataSetObserver {

0 notes on commit a7936b0

Please sign in to comment.
Something went wrong with that request. Please try again.