Fixed
Status Update
Comments
il...@google.com <il...@google.com>
il...@google.com <il...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
Description
Version used: 1.1.0-alpha04
Classes that extend from FragmentActivity (or, by extension, AppCompatActivity) should always call super.onActivityResult(requestCode, resultCode, data) to unlock the ability to do FragmentTransactions in onActivityResult() and ensure that Fragments that have called startActivityForResult get their callbacks to onActivityResult themselves.
This will allow Lint to warn developers ahead of time that they need to call super instead of only after debugging why they get an IllegalStateException.