I recently stumbled upon a problem.
I am working with a Nested PreferenceScreen like this:
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceScreen
android:key="pref_name"
android:title="@string/pref_title" >
</PreferenceScreen>
When my screen has the focus on the Nested Preference Screen and I change screenorientation, the Nested PreferenceScreen closes.
I have also tried including:
android:configChanges="orientation|keyboardHidden"
in AndroidManifest.xml, but didn't work.
Does anyone have a solution for this?
EDIT POSSIBLE SOLUTION:
I did find the solution. I thought it was this line:
android:configChanges="keyboardHidden|orientation|screenSize"