I have an very old Android app that I am trying to update to use current libraries. Now I am trying to use the Jetpack preference library instead of the old support preference library. I have a really complicated setting hierarchy and it made sense to use the preference headers in the old library. My main settings activity subclasses PreferenceActivity and override onBuildHeaders() to load a defined list of preference headers.
There just does not seem to be any equivalent functionality in the new Jetpack preference library. It does not seem possible that Google could drop such a widely used feature without raising howls of protest, but I have been unable to find any documentation on how to migrate preference headers to Jetpack, or anyone complaining about the lack of such support. What am I missing?