Fix Resume bug introduced during refactoring.  Also make sure SharedPreferences is injected.
Correct development version.