public override IDisposable ActionSheet(ActionSheetConfig config)
        {
            var activity = this.TopActivityFunc();

            if (activity is AppCompatActivity)
            {
                return(this.ShowDialog <ActionSheetAppCompatDialogFragment, ActionSheetConfig>((AppCompatActivity)activity, config));
            }

            if (activity is FragmentActivity)
            {
                return(this.ShowDialog <ActionSheetDialogFragment, ActionSheetConfig>((FragmentActivity)activity, config));
            }

            return(this.Show(activity, ActionSheetBuilder.Build(activity, config)));
        }
Exemplo n.º 2
0
 protected override Dialog CreateDialog(ActionSheetConfig config)
 {
     return(ActionSheetBuilder.Build(this.Activity as AppCompatActivity, config).Create());
 }