summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs
diff options
context:
space:
mode:
authorMichael Rumpler <michael@mrumpler.at>2016-12-06 12:59:43 +0100
committerRui Marinho <me@ruimarinho.net>2016-12-06 11:59:43 +0000
commit75258aa80062b9299fb8cf63bf376e7cbd71769c (patch)
tree966bf2b2b8aa9833e48edfc1e7c4acb0b062e26c /Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs
parentff1bf0b5ef5ceb9b5b4b65809f91c4c608d26fff (diff)
downloadxamarin-forms-75258aa80062b9299fb8cf63bf376e7cbd71769c.tar.gz
xamarin-forms-75258aa80062b9299fb8cf63bf376e7cbd71769c.tar.bz2
xamarin-forms-75258aa80062b9299fb8cf63bf376e7cbd71769c.zip
Don't render empty TextCells for TableSections without Title (bugs 26104 and 42926) (#287)
* Don't render empty TextCells for TableSections without Title (bugs 26104 and 42926) * Cache the Cells so that GetCellForPosition doesn't have to iterate all Cells every time it is called
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs
index 2ac8efa6..cde22f91 100644
--- a/Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/Renderers/TableViewRenderer.cs
@@ -45,5 +45,13 @@ namespace Xamarin.Forms.Platform.Android
TableViewModelRenderer source = GetModelRenderer(listView, view);
listView.Adapter = source;
}
+
+ protected override void Dispose(bool disposing)
+ {
+ if(disposing)
+ Control?.Adapter?.Dispose();
+
+ base.Dispose(disposing);
+ }
}
} \ No newline at end of file