This issue seems to originate from changes added with automatic theme switching.
From what I can tell, it's a result of findPreference("theme") returning null depending on where in the settings the user is currently in. Seems like the code would exit before it got to the lines where it got to the setSummaryHtml lines.
These changes make the code resilient to findPreference("theme") returning null. I've also moved it so that it's only run once per screen instead of every time the visibility of a preference is set.
This issue seems to originate from changes added with automatic theme switching.
From what I can tell, it's a result of
findPreference("theme")
returning null depending on where in the settings the user is currently in. Seems like the code would exit before it got to the lines where it got to thesetSummaryHtml
lines.These changes make the code resilient to
findPreference("theme")
returning null. I've also moved it so that it's only run once per screen instead of every time the visibility of a preference is set.