diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs b/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs index 2c0ffb43..23038de7 100644 --- a/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs +++ b/Xamarin.Forms.Platform.iOS/Cells/CellTableViewCell.cs @@ -19,19 +19,17 @@ namespace Xamarin.Forms.Platform.iOS get { return _cell; } set { - if (_cell == value) + if (this._cell == value) return; - ICellController cellController = _cell; - - if (cellController != null) - Device.BeginInvokeOnMainThread(cellController.SendDisappearing); + if (_cell != null) + Device.BeginInvokeOnMainThread(_cell.SendDisappearing); + this._cell = value; _cell = value; - cellController = value; - if (cellController != null) - Device.BeginInvokeOnMainThread(cellController.SendAppearing); + if (_cell != null) + Device.BeginInvokeOnMainThread(_cell.SendAppearing); } } |