Fix the logic to set visible mode by a2dp role