mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

TrackSelectionView requires an initialization with a call to init(...). That's why we shouldn't let the view retain its view hierarchy automatically as the views won't be backed by data if restored. Instead add a listener which lets the containing activity/fragment save and restore the state if needed. PiperOrigin-RevId: 234152491