Since LayoutManager handle mLayout is not constructed by FlexibleView,
mLayout is not disposed but its member handles are cleared.
Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
if (mLayout != null)
{
mLayout.StopScroll(false);
- mLayout.Dispose();
+ mLayout.ClearRecyclerView();
mLayout = null;
}
mChildHelper = recyclerView.GetChildHelper();
}
+ internal void ClearRecyclerView()
+ {
+ mFlexibleView = null;
+ mChildHelper = null;
+ }
+
internal void StopScroll(bool doSomethingAfterAnimationStopped)
{
if (mScrollAni != null && mScrollAni.State == Animation.States.Playing)