Retain row-as-header behavior when recycling (#1832) fixes #1598

This commit is contained in:
kingces95 2018-02-14 04:22:05 -08:00 коммит произвёл Rui Marinho
Родитель 8e5a3baac3
Коммит c9dd450406
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -448,7 +448,7 @@ namespace Xamarin.Forms.Platform.Android
var layout = cellOwner as ConditionalFocusLayout;
if (layout != null)
cellOwner = layout.GetChildAt(0);
cell = (Cell)((INativeElementView)cellOwner).Element;
cell = (Cell)(cellOwner as INativeElementView)?.Element;
}
// All our ListView's have called AddHeaderView. This effectively becomes index 0, so our index 0 is index 1 to the listView.