Fixed Android lifecycle event listener. Ignore pause/resume events from orientation changes.