Permalink
Browse files

Updated to work with Mono for Android 4.0

  • Loading branch information...
1 parent 77a9102 commit 0fff1635f1f4388ab5f8e24f826484817e3f19a4 @Clancey committed Jan 30, 2012

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -23,13 +23,13 @@ public DialogHelper(Context context, ListView dialogView, RootElement root)
dialogView.Adapter = this.DialogAdapter = new DialogAdapter(context, this.Root);
dialogView.ItemClick += new EventHandler<ItemEventArgs>(ListView_ItemClick);
- dialogView.ItemLongClick += new EventHandler<ItemEventArgs>(ListView_ItemLongClick);
+ dialogView.ItemLongClick += ListView_ItemLongClick;;
dialogView.Tag = root;
}
- void ListView_ItemLongClick(object sender, ItemEventArgs e)
+ void ListView_ItemLongClick (object sender, AdapterView.ItemLongClickEventArgs e)
{
- var elem = this.DialogAdapter.ElementAtIndex(e.Position);
+ var elem = this.DialogAdapter.ElementAtIndex(e.Position);
if (elem != null && elem.LongClick != null)
elem.LongClick(sender, e);
}
@@ -377,7 +377,7 @@ public void SelectRadio()
dialog.Create().Show();
}
- void IDialogInterfaceOnClickListener.OnClick(IDialogInterface dialog, DialogInterfaceButton which)
+ void IDialogInterfaceOnClickListener.OnClick(IDialogInterface dialog, int which)
{
if ((int)which >= 0)
{

0 comments on commit 0fff163

Please sign in to comment.