summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-10-04 11:31:15 -0500
committerRui Marinho <me@ruimarinho.net>2016-10-04 17:37:00 +0100
commit162c2c0a67990e236b662865edc038edfc804e58 (patch)
tree50c7f703694c9fec6731ff171488223909bd93c6 /Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
parent56707c35f035d21924831161b2deda0325db15f7 (diff)
downloadxamarin-forms-162c2c0a67990e236b662865edc038edfc804e58.tar.gz
xamarin-forms-162c2c0a67990e236b662865edc038edfc804e58.tar.bz2
xamarin-forms-162c2c0a67990e236b662865edc038edfc804e58.zip
Fixed bug 43993 by removing call to base ViewWillAppear (#333)
* Fixed bug 43993 by removing call to base ViewWillAppear * Removed commented code and reduced nesting
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
index 07025c70..39136327 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs
@@ -1076,14 +1076,11 @@ namespace Xamarin.Forms.Platform.iOS
public override void ViewWillAppear(bool animated)
{
- base.ViewWillAppear(animated);
+ if (!_list.IsRefreshing || !_refresh.Refreshing) return;
- if (_list.IsRefreshing && _refresh.Refreshing)
- {
- // Restart the refreshing to get the animation to trigger
- UpdateIsRefreshing(false);
- UpdateIsRefreshing(true);
- }
+ // Restart the refreshing to get the animation to trigger
+ UpdateIsRefreshing(false);
+ UpdateIsRefreshing(true);
}
protected override void Dispose(bool disposing)