TikTok parent ByteDance avoided a potentially messy jury trial.