summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
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:31:15 +0100
commit47b61aab59e52832ff65d0a1aaeafb9dceeaca64 (patch)
treeae5cee8cffab0e7c2f401f30323d002eb765b2c9 /Xamarin.Forms.Platform.iOS
parentb645064d939201a7df7cc67917b4c31c450a7a89 (diff)
downloadxamarin-forms-47b61aab59e52832ff65d0a1aaeafb9dceeaca64.tar.gz
xamarin-forms-47b61aab59e52832ff65d0a1aaeafb9dceeaca64.tar.bz2
xamarin-forms-47b61aab59e52832ff65d0a1aaeafb9dceeaca64.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')
-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)