Fixed the issue with the activities being re-created when the screen
rotates.