summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/CellAdapter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Android/CellAdapter.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/CellAdapter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Android/CellAdapter.cs b/Xamarin.Forms.Platform.Android/CellAdapter.cs
index 58c35a89..4c8ac10d 100644
--- a/Xamarin.Forms.Platform.Android/CellAdapter.cs
+++ b/Xamarin.Forms.Platform.Android/CellAdapter.cs
@@ -202,7 +202,7 @@ namespace Xamarin.Forms.Platform.Android
if (action.Command != null)
action.Command.CanExecuteChanged += commandChanged;
- if (!action.IsEnabled)
+ if (!((IMenuItemController)action).IsEnabled)
item.SetEnabled(false);
}
}
@@ -247,7 +247,7 @@ namespace Xamarin.Forms.Platform.Android
void OnActionItemClickedImpl(IMenuItem item)
{
int index = item.ItemId;
- MenuItem action = ActionModeContext.ContextActions[index];
+ IMenuItemController action = ActionModeContext.ContextActions[index];
action.Activate();
}