Added bit to not display the last transition if it's the same as the activity.