From 6390654dd6985688ef0b5e339120f443b5ac697b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 19 Oct 2018 11:00:01 +0000 Subject: [PATCH] Save auto state --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index f3b368dd..7edc6626 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -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"));