Johnny Depp is not letting his legal drama with Amber Heard get in the way of having a good time — or from giving back.

Ahead of his Friday night performance with the Hollywood Vampires in Lisbon, Portugal, the Alice Through the Looking Glass star attended a Charity event with his rock supergroup.

Depp, his bandmates, Alice Cooper and Joe Perry, and their frequent collaborators, Robert Deleo, Tommy Henriksen and Bruce Witkin, helped fit and adjust free hearing aids to 30 patients from Santa Casa da Misericordia de Lisboa, a catholic Charity organization, in support of the Starkey Hearing Foundation Hearing Mission.

Depp, 52, was all smiles at the event as he chatted with patients.

According to a post on the Hollywood Vampires’ official Facebook page, the band partnered with Starkey in order to bring awareness to the foundation, which brings hearing aids to impoverished places around the world “where the hearing impaired are often unable to participate in life.”

The band also shared a few highlights from the charity event to their Instagram page.

Later, the group took the stage to perform at the Rock in Rio music festival. Perry and Depp snapped a pic together backstage before rocking out in front of the crowd.

Hours before the performance, Depp’s estranged wife, Heard, was granted a temporary domestic violence restraining order against the actor. The Los Angeles court visit came less than a week after the 30-year-old actress filed for divorce from Depp.