summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-11-18 13:46:34 -0600
committerRui Marinho <me@ruimarinho.net>2016-11-18 19:46:34 +0000
commit4cb6e6de2bf7474ac23c7efe151511cae90b60c3 (patch)
treea15e7f381f7e655bbc580d50e309dacdeda4bba5 /Xamarin.Forms.Platform.Android
parent615e3db608d52900e122d233d68ab868a8d117cf (diff)
downloadxamarin-forms-4cb6e6de2bf7474ac23c7efe151511cae90b60c3.tar.gz
xamarin-forms-4cb6e6de2bf7474ac23c7efe151511cae90b60c3.tar.bz2
xamarin-forms-4cb6e6de2bf7474ac23c7efe151511cae90b60c3.zip
[Android] Do not show cell context actions if input views are long clicked (#544)
* Disable long click on cells if touch is on an input view * remove redundant check
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/CellAdapter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/CellAdapter.cs b/Xamarin.Forms.Platform.Android/CellAdapter.cs
index 02bf7a38..03957d37 100644
--- a/Xamarin.Forms.Platform.Android/CellAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/CellAdapter.cs
@@ -214,6 +214,9 @@ namespace Xamarin.Forms.Platform.Android
bool HandleContextMode(AView view, int position)
{
+ if (view is EditText || view is TextView || view is SearchView)
+ return false;
+
Cell cell = GetCellForPosition(position);
if (cell == null)