PreferenceCompatFragment - Layout messed up when edit text dialog displayed
11:49 23 Apr 2026

While testing a preferences fragment built with PreferenceFragmentCompat, I've noticed that the appearance of the preference list is messed up, seemingly at random, whenever an edit text dialog is displayed. If I rotate the screen (using default behavior for config changes with this activity) or switch from another fragment then back to this one, the correct appearance is restored. I manage a change listener in onResume/onPause, but removing that doesn't change anything, so I know that's not related.

I have tried the takisoft fix library as well, assuming that's still relevant. While it might fix other issues, it does nothing for this one.

Any ideas? I've looked for a fix, using every search term I can think of, but finding nothing.

android