pakerfeldt / android-viewflow

A horizontal view scroller library for Android
1.78k stars 694 forks source link

index out of bounds bug in viewflow #71

Open gothion opened 12 years ago

gothion commented 12 years ago

Hello , Patrik! I am a beginner in learning android . and I found one of your work viewflow, which I think very excellent, may contain some bug. According to the log ,I found that when Keep sliding the screen, strings in the green block (05-25 10:32:25.370: D/viewflow(2536): Size of mLoadedViews: 5, Size of mRecycledViews: 4, X: 640, Y: 0), and (05-25 10:32:25.380: D/viewflow(2536): IndexInAdapter: 5, IndexInBuffer: 3 can be get. And then the index out of bounds will occur.which will cause the appliacation of your example to crash.

May this string ,05-25 10:15:35.590: E/AndroidRuntime(1914): at org.taptwo.android.widget.ViewFlow.postViewSwitched(ViewFlow.java:667), be helpful in debugging. it would be very helpful for you to fix this,and I will be very happy for your kindness responding best regards!