File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ public void setObjectForPosition(Object obj, int position) {
560
560
mObjs .put (Integer .valueOf (position ), obj );
561
561
}
562
562
563
- private View findViewFromObject (int position ) {
563
+ public View findViewFromObject (int position ) {
564
564
Object o = mObjs .get (Integer .valueOf (position ));
565
565
if (o == null ) {
566
566
return null ;
Original file line number Diff line number Diff line change @@ -71,16 +71,19 @@ public Object instantiateItem(ViewGroup container, final int position) {
71
71
}
72
72
@ Override
73
73
public void destroyItem (ViewGroup container , int position , Object obj ) {
74
- container .removeView (( View ) obj );
74
+ container .removeView (mJazzy . findViewFromObject ( position ) );
75
75
}
76
76
@ Override
77
77
public int getCount () {
78
78
return 10 ;
79
79
}
80
80
@ Override
81
- public boolean isViewFromObject (View arg0 , Object arg1 ) {
82
- return arg0 == arg1 ;
81
+ public boolean isViewFromObject (View view , Object obj ) {
82
+ if (view instanceof OutlineContainer ) {
83
+ return ((OutlineContainer ) view ).getChildAt (0 ) == obj ;
84
+ } else {
85
+ return view == obj ;
86
+ }
83
87
}
84
88
}
85
-
86
89
}
You can’t perform that action at this time.
0 commit comments