summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-06-18 01:16:00 +0100
committerGitHub <noreply@github.com>2016-06-18 01:16:00 +0100
commit22f3c5b3646f03c597f8dd1151fabedfb6007349 (patch)
treea8951bdd2fab5c61607a7ed3773c3cdca4c4244f /Xamarin.Forms.Platform.Android/Renderers
parent934083393287f156bb4eeb5df817618bff89c03d (diff)
downloadxamarin-forms-22f3c5b3646f03c597f8dd1151fabedfb6007349.tar.gz
xamarin-forms-22f3c5b3646f03c597f8dd1151fabedfb6007349.tar.bz2
xamarin-forms-22f3c5b3646f03c597f8dd1151fabedfb6007349.zip
[Android] Make sure to add a parent to the new group header cell (#228)
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
index 64d9d180..5ac214cd 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/ListViewAdapter.cs
@@ -408,6 +408,7 @@ namespace Xamarin.Forms.Platform.Android
var groupContent = _listView.TemplatedItems.GroupHeaderTemplate.CreateContent(group.ItemsSource, _listView) as Cell;
if (groupContent != null)
{
+ groupContent.Parent = _listView;
groupContent.BindingContext = group.ItemsSource;
cells.Add(groupContent);
}