Skip to content

Commit

Permalink
Fix for Radio selection in Droid Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
slodge committed Jul 7, 2013
1 parent 24bf443 commit ac7ee21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CrossUI/CrossUI.Droid/Dialog/Elements/RootElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Group Group
public bool UnevenRows { get; set; }

public Func<RootElement, View> _createOnSelected;
public event EventHandler RadioSelectionChanged;
public event EventHandler RadioSelectedChanged;

public RootElement()
: this(null)
Expand Down Expand Up @@ -341,6 +341,10 @@ void IDialogInterfaceOnClickListener.OnClick(IDialogInterface dialog, int which)
{
RadioSelected = which;
var radioValue = GetSelectedValue();
#warning This radio selection is a bit of a mess currently - both radio value and RadioSelected change...
var handler = RadioSelectedChanged;
if (handler != null)
handler(this, EventArgs.Empty);
OnUserValueChanged(radioValue);
}

Expand Down

0 comments on commit ac7ee21

Please sign in to comment.