summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-08-09 11:16:51 +0100
committerStephane Delcroix <stephane@delcroix.org>2016-08-09 12:16:51 +0200
commit0a73c0f4bbf75d8a83f36b031c3bfd07108ea04b (patch)
tree55ce4e8ace547f01162bca7f2af5270f9100b0a9 /Xamarin.Forms.Platform.Android
parentb186254d1f4a0547c67f4fd30669df9d4cf36b65 (diff)
downloadxamarin-forms-0a73c0f4bbf75d8a83f36b031c3bfd07108ea04b.tar.gz
xamarin-forms-0a73c0f4bbf75d8a83f36b031c3bfd07108ea04b.tar.bz2
xamarin-forms-0a73c0f4bbf75d8a83f36b031c3bfd07108ea04b.zip
[Android] Close the correct mode if it wasn't disposed (#283)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/CellAdapter.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/CellAdapter.cs b/Xamarin.Forms.Platform.Android/CellAdapter.cs
index d79df76d..44bcb3d9 100644
--- a/Xamarin.Forms.Platform.Android/CellAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/CellAdapter.cs
@@ -81,15 +81,15 @@ namespace Xamarin.Forms.Platform.Android
public bool OnActionItemClicked(ActionMode mode, IMenuItem item)
{
OnActionItemClickedImpl(item);
- if (mode != null && mode.Handle != IntPtr.Zero)
- mode.Finish();
+ _actionMode?.Finish();
return true;
}
bool global::Android.Support.V7.View.ActionMode.ICallback.OnActionItemClicked(global::Android.Support.V7.View.ActionMode mode, IMenuItem item)
{
OnActionItemClickedImpl(item);
- mode.Finish();
+
+ _supportActionMode?.Finish();
return true;
}