I basically just ignored the behavior and continued as normal, professionally, with the other interviewer. Eventually, whatever I was coding up finally drew the rude interviewer's attention.
I made it to the next round, which I passed, and was ready to do a final round but ended up going with another offer before proceeding with them. After reading a bit more about the work culture at the place and seeing the interviewer's behavior, I definitely don't regret it, even though their RSUs would likely be worth quite a lot today. Work life balance and culture are important so that you're not miserable in your job.
My advice is: continue the interview professionally, but take the rudeness into consideration before you take an offer if it comes. Worst case, you're out a few hours of time and learned a bit about a different company. Also don't assume the worst. With the interviewer who was texting, I chose to believe that maybe he had some personal issue going on rather than thinking that my behavior triggered the rudeness, which helped me finish up the interview.