From 226adcd4a73a9c643ae585cc523cc412ad0060c8 Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Fri, 22 Jun 2018 09:30:43 -0600 Subject: [PATCH] Use GestureDetector constructor that takes in Context 3.0 (#3109) --- Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs b/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs index 2a908ea30..3640933a4 100644 --- a/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs @@ -90,7 +90,7 @@ namespace Xamarin.Forms.Platform.Android return _longPressGestureDetector; } - _longPressGestureDetector = new GestureDetector(new LongPressGestureListener(TriggerLongClick)); + _longPressGestureDetector = new GestureDetector(Context, new LongPressGestureListener(TriggerLongClick)); return _longPressGestureDetector; } }