summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/CellAdapter.cs
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-06-17 10:10:18 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-06-17 10:10:18 (GMT)
commit925fc0aa588a060eb23fa16c1d225dd030012c23 (patch)
tree83676c25c29d97d9250516b217020ba85425796d /Xamarin.Forms.Platform.Android/CellAdapter.cs
parentd44396a4534b1e2bc81143c809e4adaee656ab15 (diff)
downloadxamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.zip
xamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.tar.gz
xamarin-forms-925fc0aa588a060eb23fa16c1d225dd030012c23.tar.bz2
Prep Cell & friends for removal of InternalsVisibleTo (#142)
* Prep Cell & friends for removal of InternalsVisibleTo Includes: - Cell - EntryCell - ListView - MenuItem - TableView - ViewCell - Toolbar Moved extensions to Internal & removed TPH * Update docs * [Controls] Ignore Issue2411 on iOS <9 * [Controls] Formatting for Issue2411
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 58c35a8..4c8ac10 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();
}