diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android/RendererPool.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/RendererPool.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Android/RendererPool.cs b/Xamarin.Forms.Platform.Android/RendererPool.cs index 95a28778..447de3fd 100644 --- a/Xamarin.Forms.Platform.Android/RendererPool.cs +++ b/Xamarin.Forms.Platform.Android/RendererPool.cs @@ -25,7 +25,7 @@ namespace Xamarin.Forms.Platform.Android public void ClearChildrenRenderers() { - if (_parent.Element.LogicalChildren.Count == 0) + if (((IElementController)_parent.Element).LogicalChildren.Count == 0) return; ClearChildrenRenderers(_oldElement); } @@ -51,7 +51,7 @@ namespace Xamarin.Forms.Platform.Android if (view == null) return; - foreach (Element logicalChild in view.LogicalChildren) + foreach (Element logicalChild in ((IElementController)view).LogicalChildren) { var child = logicalChild as VisualElement; if (child != null) |