onStop vs onDestroyView


#1

In listing 20.17 we call PictureUtils.cleanImageView() inside CrimeFragment’s onStop() method, but in listing 20.19 we cal the cleanup method inside ImageFragment’s onDestroyView() method. Why the difference? What is special about onDestroyView() that we wouldn’t just call the cleanup method in ImageFragment’s onStop() method?