Fix NRE when RecycleElement is on and list is scrolled quickly (#856)
authorE.Z. Hart <hartez@users.noreply.github.com>
Thu, 6 Apr 2017 18:55:51 +0000 (12:55 -0600)
committerSamantha Houts <samhouts@users.noreply.github.com>
Thu, 6 Apr 2017 18:55:51 +0000 (11:55 -0700)
Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs

index b14a585..1366530 100644 (file)
@@ -179,12 +179,6 @@ namespace Xamarin.Forms.Platform.Android
                        LayoutParameters = new LayoutParams(ViewGroup.LayoutParams.MatchParent, (int)(height == -1 ? ViewGroup.LayoutParams.WrapContent : height));
                }
 
-               protected override void OnDetachedFromWindow()
-               {
-                       base.OnDetachedFromWindow();
-                       _cell = null;
-               }
-
                async void UpdateBitmap(ImageSource source, ImageSource previousSource = null)
                {
                        if (Equals(source, previousSource))