Reverting changes to the activity.