When mCallbacks.onCrimeUpdated()
; is called in CrimeFragment and then called by CrimeListActivity the argument crime doesn’t get used in the following method body:
public void onCrimeUpdated(Crime crime) { CrimeListFragment listFragment = (CrimeListFragment) getSupportFragmentManager() .findFragmentById(R.id.fragment_container); listFragment.updateUI(); }
I removed the Crime crime
argument from the code and reran the app both on a phone and a tablet and nothing seemed to change. Is it necessary to pass crime as an argument into onCrimeUpdated?