Switched fragments Changed fragments to be instantiated with a factory method pattern. This leaves the fragments with just empty constructors (which the Android framework expects) and passes all needed values in an arguments Bundle. This allows the framework to properly handle recreating fragments, eliminating some crashing bugs.