1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Made sure every PreferenceScreen has an associated key

If a PreferenceScreen has no associated key the screen can't be
restored after an orientation change (and the main screen is displayed)
This commit is contained in:
cketti 2012-06-06 15:03:46 +02:00
parent 42ee13741f
commit 2f7f7ad908
4 changed files with 28 additions and 14 deletions

View File

@ -18,6 +18,9 @@
Make sure to add android:persistent="false" to all preferences to disable saving
the preference values to SharedPreferences. We use our own storage mechanism for
the preferences. See com.fsck.k9.preferences.Storage.
Also note that every sub-PreferenceScreen needs an "android:key" parameter so the correct screen
can be displayed after the device has been rotated.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
@ -43,7 +46,8 @@
</PreferenceScreen>
<PreferenceScreen
android:title="@string/account_settings_display_prefs_title">
android:title="@string/account_settings_display_prefs_title"
android:key="display">
<PreferenceCategory
android:title="@string/account_settings_message_lists"
@ -82,7 +86,8 @@
</PreferenceScreen>
<PreferenceScreen
android:title="@string/interaction_preferences">
android:title="@string/interaction_preferences"
android:key="interaction">
<CheckBoxPreference
android:persistent="false"
@ -341,7 +346,7 @@
</PreferenceScreen>
<PreferenceScreen
android:title="@string/account_settings_storage_title"
android:key="folders">
android:key="storage_provider">
<ListPreference
android:persistent="false"

View File

@ -18,6 +18,9 @@
Make sure to add android:persistent="false" to all preferences to disable saving
the preference values to SharedPreferences. We use our own storage mechanism for
the preferences. See com.fsck.k9.preferences.Storage.
Also note that every sub-PreferenceScreen needs an "android:key" parameter so the correct screen
can be displayed after the device has been rotated.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

View File

@ -4,6 +4,9 @@
Make sure to add android:persistent="false" to all preferences to disable saving
the preference values to SharedPreferences. We use our own storage mechanism for
the preferences. See com.fsck.k9.preferences.Storage.
Also note that every sub-PreferenceScreen needs an "android:key" parameter so the correct screen
can be displayed after the device has been rotated.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

View File

@ -18,6 +18,9 @@
Make sure to add android:persistent="false" to all preferences to disable saving
the preference values to SharedPreferences. We use our own storage mechanism for
the preferences. See com.fsck.k9.preferences.Storage.
Also note that every sub-PreferenceScreen needs an "android:key" parameter so the correct screen
can be displayed after the device has been rotated.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">