mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Save auto state
This commit is contained in:
parent
871a316157
commit
6390654dd6
1 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,8 @@ public class FragmentMessages extends FragmentEx {
|
|||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
outState.putBoolean("autoExpand", autoExpand);
|
||||
outState.putInt("autoCount", autoCount);
|
||||
outState.putLongArray("expanded", Helper.toLongArray(expanded));
|
||||
outState.putLongArray("headers", Helper.toLongArray(headers));
|
||||
outState.putLongArray("images", Helper.toLongArray(images));
|
||||
|
@ -501,6 +503,8 @@ public class FragmentMessages extends FragmentEx {
|
|||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
autoExpand = savedInstanceState.getBoolean("autoExpand");
|
||||
autoCount = savedInstanceState.getInt("autoCount");
|
||||
expanded = Helper.fromLongArray(savedInstanceState.getLongArray("expanded"));
|
||||
headers = Helper.fromLongArray(savedInstanceState.getLongArray("headers"));
|
||||
images = Helper.fromLongArray(savedInstanceState.getLongArray("images"));
|
||||
|
|
Loading…
Reference in a new issue