示例#1
0
        private void OnGoogleLoginButtonClick(object sender, EventArgs e)
        {
            var accounts = GoogleAccounts;

            if (accounts.Count == 1)
            {
                GoogleAuthFragment.Start(FragmentManager, accounts [0]);
            }
            else if (accounts.Count > 1)
            {
                var dia = new GoogleAccountSelectionDialogFragment();
                dia.Show(FragmentManager, "accounts_dialog");
            }
        }
示例#2
0
        private void OnGoogleLoginButtonClick (object sender, EventArgs e)
        {
            var accounts = GoogleAccounts;

            if (accounts.Count == 1) {
                GoogleAuthFragment.Start (FragmentManager, accounts [0]);
            } else if (accounts.Count > 1) {
                var dia = new GoogleAccountSelectionDialogFragment ();
                dia.Show (FragmentManager, "accounts_dialog");
            }
        }