1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Save initialized state

This commit is contained in:
M66B 2024-05-09 21:36:32 +02:00
parent a207b73082
commit b20b7dee10

View file

@ -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);
}