I completed the delete challenge in chapter 13. Works fine on my phone, not on a tablet. I read other solutions from previous revisions. I understand I simply can’t call getActivity().finish() from my onOptionsItemSelected() within CrimeFragment.java. I think my problem is a little different though…when I’m in tablet mode and I press the delete button from the detail fragment side I end up in onOptionsItemSelected() in CrimeListFragment.java and not in CrimeFragment.java.
This seems to differ from what others are experiencing as others still seem to be able to modify onOptionsItemSelected() in CrimeFragment.java…I can catch the delete case in CrimeListFragment.java, but I have no “mCrime” to work with. Am I making an inflation mistake somewhere? Did something change from previous revisions where I actually am in the correct function and the solution this revision is different? Thanks.