summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2017-08-07 18:34:55 (GMT)
committerGitHub <noreply@github.com>2017-08-07 18:34:55 (GMT)
commitc13edf4f7ca5d6ecb53ec582ca69bbff1edfdc41 (patch)
tree4d0ac98cc1341c4835691b430a8371fe71e47542 /Xamarin.Forms.Platform.iOS
parent2d726831ce0213ef5a6422641581ebcadfdf7022 (diff)
downloadxamarin-forms-c13edf4f7ca5d6ecb53ec582ca69bbff1edfdc41.zip
xamarin-forms-c13edf4f7ca5d6ecb53ec582ca69bbff1edfdc41.tar.gz
xamarin-forms-c13edf4f7ca5d6ecb53ec582ca69bbff1edfdc41.tar.bz2
[iOS] Clear state so we allow the SelectedItem to be set (#1073)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
index 67ebef3..6f10cf1 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
@@ -1029,6 +1029,12 @@ namespace Xamarin.Forms.Platform.iOS
return sl.Name;
}
+ public void Cleanup()
+ {
+ _selectionFromNative = false;
+ _isDragging = false;
+ }
+
public void UpdateGrouping()
{
UpdateShortNameListener();
@@ -1251,6 +1257,7 @@ namespace Xamarin.Forms.Platform.iOS
public override void ViewWillAppear(bool animated)
{
+ (TableView?.Source as ListViewRenderer.ListViewDataSource)?.Cleanup();
if (!_list.IsRefreshing || !_refresh.Refreshing) return;
// Restart the refreshing to get the animation to trigger