Restored some activity lifecycle functionality
  * Does not crash when lifecycle is resumed