Fix problem with dialog reappearing after orientation change in HomeActivity.java