From: E.Z. Hart Date: Thu, 6 Apr 2017 18:55:51 +0000 (-0600) Subject: Fix NRE when RecycleElement is on and list is scrolled quickly (#856) X-Git-Tag: submit/tizen/20170424.094440~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c57db04e40aaf026e2f2a58536c4f4a10c25566;p=platform%2Fupstream%2Fxamarin-forms.git Fix NRE when RecycleElement is on and list is scrolled quickly (#856) --- diff --git a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs index b14a585..1366530 100644 --- a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs +++ b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs @@ -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))