mirror of
https://github.com/moparisthebest/k-9
synced 2025-03-01 09:01:47 -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:
parent
42ee13741f
commit
2f7f7ad908
@ -18,6 +18,9 @@
|
|||||||
Make sure to add android:persistent="false" to all preferences to disable saving
|
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 preference values to SharedPreferences. We use our own storage mechanism for
|
||||||
the preferences. See com.fsck.k9.preferences.Storage.
|
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">
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
@ -43,7 +46,8 @@
|
|||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:title="@string/account_settings_display_prefs_title">
|
android:title="@string/account_settings_display_prefs_title"
|
||||||
|
android:key="display">
|
||||||
|
|
||||||
<PreferenceCategory
|
<PreferenceCategory
|
||||||
android:title="@string/account_settings_message_lists"
|
android:title="@string/account_settings_message_lists"
|
||||||
@ -82,7 +86,8 @@
|
|||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:title="@string/interaction_preferences">
|
android:title="@string/interaction_preferences"
|
||||||
|
android:key="interaction">
|
||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
@ -341,7 +346,7 @@
|
|||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
android:title="@string/account_settings_storage_title"
|
android:title="@string/account_settings_storage_title"
|
||||||
android:key="folders">
|
android:key="storage_provider">
|
||||||
|
|
||||||
<ListPreference
|
<ListPreference
|
||||||
android:persistent="false"
|
android:persistent="false"
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
Make sure to add android:persistent="false" to all preferences to disable saving
|
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 preference values to SharedPreferences. We use our own storage mechanism for
|
||||||
the preferences. See com.fsck.k9.preferences.Storage.
|
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">
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
Make sure to add android:persistent="false" to all preferences to disable saving
|
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 preference values to SharedPreferences. We use our own storage mechanism for
|
||||||
the preferences. See com.fsck.k9.preferences.Storage.
|
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">
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
Make sure to add android:persistent="false" to all preferences to disable saving
|
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 preference values to SharedPreferences. We use our own storage mechanism for
|
||||||
the preferences. See com.fsck.k9.preferences.Storage.
|
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">
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user