(d) In the case of an alleged violation of probation or community control other than a failure to pay costs, fines, or restitution, the following individuals shall remain in custody pending the resolution of the probation or community control violation:
1. A violent felony offender of special concern, as defined in this section;
2. A person who is on felony probation or community control for any offense committed on or after the effective date of this act and who is arrested for a qualifying offense as defined in this section; or
3. A person who is on felony probation or community control and has previously been found by a court to be a habitual violent felony offender as defined in s.
775.084(1)(b), a three-time violent felony offender as defined in s.
775.084(1)(c), or a sexual predator under s.
775.21, and who is arrested for committing a qualifying offense as defined in this section on or after the effective date of this act.
The court shall not dismiss the probation or community control violation warrant pending against an offender enumerated in this paragraph without holding a recorded violation-of-probation hearing at which both the state and the offender are represented.