A half-naked woman was arrested after being caught masturbating in public in Austin, Texas — then allegedly continued pleasuring herself while handcuffed in a police car.

Police responded to a complaint from the JW Marriott Austin Hotel about 5:20 p.m. Tuesday about a woman across the street “holding a silver object” against her privates “with her legs straight up in the air, spread open,” according to the arrest affidavit.

A hotel worker said he could hear the woman — identified by authorities as Dovie Nickels, 26 — “making moaning noises,” the affidavit reads.

The worker saw the woman masturbating on the patio for about seven or eight minutes, the Austin American-Statesman reported.

The worker said the woman told him to back off as he approached her to tell her to stop.

She then went to the Second Bar + Kitchen across the street — where the lewd behavior allegedly continued, the outlet reported.

When police arrived at the bar, the woman stopped moving her arms under the table and placed them on top of it — but the officers “observed that Nickels was not wearing any pants,” the affidavit said.

After being arrested, Nickels allegedly continued to pleasure herself — even while handcuffed in the back of the squad car, police said.

The cops went across the street to investigate the original complaint and learned from a hotel employee that the woman had been spotted earlier at the Marriott’s street-level patio, the affidavit said.

Nickels was charged with indecent exposure and sent to the Travis County Jail with bail set at $3,000.