diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2017-01-09 04:53:15 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-01-09 10:53:15 +0000 |
commit | a0417309b8dce62dacce1a5519d6de47533b8802 (patch) | |
tree | c4d98ed22f030f73c9c4320f61d51a752e5893b5 /Xamarin.Forms.Platform.Android/VisualElementRenderer.cs | |
parent | c8d54e69ce047b97fdc21afcdad68644ccb1be7a (diff) | |
download | xamarin-forms-a0417309b8dce62dacce1a5519d6de47533b8802.tar.gz xamarin-forms-a0417309b8dce62dacce1a5519d6de47533b8802.tar.bz2 xamarin-forms-a0417309b8dce62dacce1a5519d6de47533b8802.zip |
[iOS] Register effects for ScrollView and WebView (#641)
* fix effects
* move effect utilities to core
* use core class
* move to internals namespace
* remove IEffectControlProvider from IVisualElementRenderer
Diffstat (limited to 'Xamarin.Forms.Platform.Android/VisualElementRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/VisualElementRenderer.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs index 637ac3bc..f67eb66e 100644 --- a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs +++ b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs @@ -5,6 +5,7 @@ using System.Collections.Specialized; using System.ComponentModel; using Android.Support.V4.View; using Android.Views; +using Xamarin.Forms.Internals; using AView = Android.Views.View; namespace Xamarin.Forms.Platform.Android @@ -197,13 +198,7 @@ namespace Xamarin.Forms.Platform.Android if (element != null) SendVisualElementInitialized(element, this); - var controller = (IElementController)oldElement; - if (controller != null && controller.EffectControlProvider == this) - controller.EffectControlProvider = null; - - controller = element; - if (controller != null) - controller.EffectControlProvider = this; + EffectUtilities.RegisterEffectControlProvider(this, oldElement, element); if (element != null && !string.IsNullOrEmpty(element.AutomationId)) SetAutomationId(element.AutomationId); |