/**
         * When calling {@link Wallet#loadFullWallet(GoogleApiClient, FullWalletRequest, int)} or
         * resolving connection errors with
         * {@link ConnectionResult#startResolutionForResult(android.app.Activity, int)},
         * the given {@link Activity}'s callback is called. Since in this case, the caller is a
         * {@link Fragment}, and not {@link Activity} that is passed in, this callback is forwarded to
         * {@link FullWalletConfirmationButtonFragment}, {@link PromoAddressLookupFragment} or
         * {@link LoginFragment}.
         * If the requestCode is one of the predefined codes to handle
         * the API calls, pass it to the fragment or else treat it normally.
         */
        protected override void OnActivityResult(int requestCode, Android.App.Result resultCode, Intent data)
        {
            switch (requestCode)
            {
            case FullWalletConfirmationButtonFragment.REQUEST_CODE_RESOLVE_LOAD_FULL_WALLET:
            case FullWalletConfirmationButtonFragment.REQUEST_CODE_RESOLVE_ERR:
            case PromoAddressLookupFragment.REQUEST_CODE_RESOLVE_ADDRESS_LOOKUP:
            case PromoAddressLookupFragment.REQUEST_CODE_RESOLVE_ERR:
            case LoginFragment.REQUEST_CODE_RESOLVE_ERR:
                var fragment = ResultTargetFragment;
                if (fragment != null)
                {
                    fragment.OnActivityResult(requestCode, (int)resultCode, data);
                }
                break;

            case REQUEST_USER_LOGIN:
                if (resultCode == Android.App.Result.Ok)
                {
                    ActivityCompat.InvalidateOptionsMenu(this);
                }
                break;

            default:
                base.OnActivityResult(requestCode, resultCode, data);
                break;
            }
        }
 protected override void OnResume()
 {
     base.OnResume();
     ActivityCompat.InvalidateOptionsMenu(this);
 }