Selena Gomez may have recently dropped the F Bomb, but she hasn't dropped the ball when it comes to being a friend to Demi LovatoThe "Come & Get It" singer and Justin Bieber's ex was there for Lovato during her drug addiction rehab, visiting and supporting her. 

According to TMZ, Gomez was a crucial reason why Lovato was able to withstand her treatment. 

The blue-haired "X Factor" judge, who had fought her addiction for two years, leaned on Bieber's ex for moral support. Lovato had once resided in a sober living home, going to speak to a recovery group about her journey.

Gomez came along on the trip with Lovato, who spoke to the group for an hour. During the visit, Joe Jonas' ex told a "pretty-inspiring, personal survival story," reported the celebrity news site. 

The "X Factor" judge has publicly acknowledged struggling with anorexia, bulimia and cutting. She recalled her battles with those issues, saying she wanted to surround herself with positive influences. In trying to live a better life, Lovato had lived in the facility for more than a year.

Getting and staying on the right track, Lovato credits Gomez and their incredible friendship as having had a lot to do with her sobriety. 

The two former teen stars have had a friendship since starting their careers on the Disney network. Though both have moved on from those child star days, the pair have remained close pals. 

Hollywood Life reported that the brunette beauty even posed for a cute Instagram picture with Lovato in November.

The "Slow Down" singer had performed on "The X Factor." Gomez, who has hung out with Austin Mahone over the last few months, took an adorable kissy-face photo with her friend.

Tell us what you think about the latest on Gomez and Lovato in a note below!