i thought this case was about strip-searching when you are in police custody.

e.g., if you're pulled over by a cop who's fishing for a traffic violation ticket, and pulls you over for a bullshit reason. he can write you a ticket, but you won't be strip-searched unless you, for example, smack the officer and they take you into custody.