title: setResult not working
body: <p>In my first activity, I call second activity this way:</p>
  
  <pre><code>Intent intent = new Intent(getActivity(), SecondActivity.class);
  startActivityForResult(intent, SOME_TAG);
  </code></pre>
  
  <p>And then in the second activity:</p>
  
  <pre><code>@Override
  public void onBackPressed() {
      Intent returnIntent = new Intent();
      setResult(AppCompatActivity.RESULT_OK, returnIntent);
      super.onBackPressed();
  }
  </code></pre>
  
  <p>Back in the first activity:</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      switch (requestCode) {
          case SOME_TAG:
              if (resultCode == AppCompatActivity.RESULT_OK) {
                  doStuff();
              }
              break;
          default:
              break;
      }
  }
  </code></pre>
  
  <p>For some reason the result code is never equal to RESULT_OK, it's just coming back 0 every time.</p>