From b20b7dee1047a1ddbf4a2198e9f258437be845ab Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 9 May 2024 21:36:32 +0200 Subject: [PATCH] Save initialized state --- app/src/main/java/eu/faircode/email/ActivityView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index bd7fc9833b..211fb646c7 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -218,8 +218,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB iff.addAction(ACTION_NEW_MESSAGE); lbm.registerReceiver(creceiver, iff); - if (savedInstanceState != null) + if (savedInstanceState != null) { + initialized = savedInstanceState.getBoolean("fair:initialized"); searching = savedInstanceState.getBoolean("fair:searching"); + } colorDrawerScrim = Helper.resolveColor(this, R.attr.colorDrawerScrim); @@ -852,6 +854,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB protected void onSaveInstanceState(Bundle outState) { outState.putParcelable("fair:intent", getIntent()); outState.putBoolean("fair:toggle", drawerToggle == null || drawerToggle.isDrawerIndicatorEnabled()); + outState.putBoolean("fair:initialized", initialized); outState.putBoolean("fair:searching", searching); super.onSaveInstanceState(outState); }