summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-06-15 10:11:51 +0100
committerGitHub <noreply@github.com>2016-06-15 10:11:51 +0100
commit7f89f5ad6d0d73cc654d8322b85c5ef6f90b63fc (patch)
tree72346017fd1ea0f9b8474b7eb726ec25ce80c670 /Xamarin.Forms.Platform.Android/VisualElementRenderer.cs
parent939bb478f74cd8abb7741b56cae8a511ac933ae5 (diff)
downloadxamarin-forms-7f89f5ad6d0d73cc654d8322b85c5ef6f90b63fc.tar.gz
xamarin-forms-7f89f5ad6d0d73cc654d8322b85c5ef6f90b63fc.tar.bz2
xamarin-forms-7f89f5ad6d0d73cc654d8322b85c5ef6f90b63fc.zip
[Android] Fix Api18 usage on PinchGesture (#218)
Diffstat (limited to 'Xamarin.Forms.Platform.Android/VisualElementRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/VisualElementRenderer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs
index d44714be..893adcaa 100644
--- a/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/VisualElementRenderer.cs
@@ -41,9 +41,9 @@ namespace Xamarin.Forms.Platform.Android
_gestureListener =
new InnerGestureListener(_tapGestureHandler.OnTap, _tapGestureHandler.TapGestureRecognizers, _panGestureHandler.OnPan, _panGestureHandler.OnPanStarted, _panGestureHandler.OnPanComplete)));
- _scaleDetector =
- new Lazy<ScaleGestureDetector>(
- () => new ScaleGestureDetector(Context, new InnerScaleListener(_pinchGestureHandler.OnPinch, _pinchGestureHandler.OnPinchStarted, _pinchGestureHandler.OnPinchEnded), Handler));
+ _scaleDetector = new Lazy<ScaleGestureDetector>(
+ () => new ScaleGestureDetector(Context, new InnerScaleListener(_pinchGestureHandler.OnPinch, _pinchGestureHandler.OnPinchStarted, _pinchGestureHandler.OnPinchEnded))
+ );
}
public TElement Element { get; private set; }