Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

IDialogInterfaceOnDismissListener not working

$
0
0

I'm trying to use the IDialogInterfaceOnDismissListener to handle the event when the search bar is closed, however it's not being invoked. I also tried IDialogInterfaceOnCancelListener but it's not being invoked either. What am I missing?

[IntentFilter(new string[]{"android.intent.action.SEARCH"})]
    [MetaData("android.app.searchable", Resource = "@xml/searchable")]
    public class HomeActivity : ActivityBase, INavigationSink, IDialogInterfaceOnDismissListener, IDialogInterfaceOnCancelListener
{
public void OnDismiss(IDialogInterface arg0)
        {
            // TODO: Not called!
        }

        public void OnCancel(IDialogInterface arg0)
        {
            // TODO: Not called!
        }
}

Viewing all articles
Browse latest Browse all 204402

Trending Articles