title: onActivityResult not getting called in fragment
body: <p><strong>code in fragment</strong></p>
  <pre><code> private static final int BRAINTREE_REQUEST_CODE = 777;
      BottomMenu fragment = this;
      public void onBraintreeSubmit(String clienTtoken) {
          DropInRequest dropInRequest = new DropInRequest().clientToken(clienTtoken);
          startActivityForResult(dropInRequest.getIntent(getActivity()), BRAINTREE_REQUEST_CODE);
      }
  @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
  
          if (requestCode == BRAINTREE_REQUEST_CODE) {
              if (resultCode == Activity.RESULT_OK) {
                  DropInResult result = data.getParcelableExtra(DropInResult.EXTRA_DROP_IN_RESULT);
                  Toast.makeText(getActivity(), result.getPaymentMethodNonce().getNonce() + &quot;&quot;, Toast.LENGTH_SHORT).show();
                  // use the result to update your UI and send the payment method nonce to your server
                  sendPaymentNonceToServer(result.getPaymentMethodNonce().getNonce());
              } else if (resultCode == Activity.RESULT_CANCELED) {
                  // the user canceled
              } else {
                  // handle errors here, an exception may be available in
                  Exception error = (Exception) data.getSerializableExtra(DropInActivity.EXTRA_ERROR);
              }
          }
      }
  </code></pre>
  <p><strong>code in activity</strong></p>
  <pre><code> @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
      }
  </code></pre>
  <p><strong>Problem:</strong></p>
  <blockquote>
  <p>I have implemented BrainTree payment gateway with onBraintreeSubmit() method I startActivityResult and catch it onActivityResult but it's not being called in the fragment.</p>
  <p>onActivityResult only gets called if I cancel payment but never when payment success or exception thrown</p>
  </blockquote>