ClassCastException only on Phones


ClassCastException: …CrimePagerActivity cannot be cast to …CrimeFragment$Callbacks

This error pops up when I try to add a crime to the list or view a crime already on the list on a phone. The app behaves fine on a tablet.


Figured it out. I forgot to implement Callbacks in CrimePagerActivity

I remember reading the line at the end saying that the app will crash on phones, but I must have skipped the code following it. Oh well.