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:
parent
a207b73082
commit
b20b7dee10
1 changed files with 4 additions and 1 deletions
|
@ -218,8 +218,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||||
iff.addAction(ACTION_NEW_MESSAGE);
|
iff.addAction(ACTION_NEW_MESSAGE);
|
||||||
lbm.registerReceiver(creceiver, iff);
|
lbm.registerReceiver(creceiver, iff);
|
||||||
|
|
||||||
if (savedInstanceState != null)
|
if (savedInstanceState != null) {
|
||||||
|
initialized = savedInstanceState.getBoolean("fair:initialized");
|
||||||
searching = savedInstanceState.getBoolean("fair:searching");
|
searching = savedInstanceState.getBoolean("fair:searching");
|
||||||
|
}
|
||||||
|
|
||||||
colorDrawerScrim = Helper.resolveColor(this, R.attr.colorDrawerScrim);
|
colorDrawerScrim = Helper.resolveColor(this, R.attr.colorDrawerScrim);
|
||||||
|
|
||||||
|
@ -852,6 +854,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||||
protected void onSaveInstanceState(Bundle outState) {
|
protected void onSaveInstanceState(Bundle outState) {
|
||||||
outState.putParcelable("fair:intent", getIntent());
|
outState.putParcelable("fair:intent", getIntent());
|
||||||
outState.putBoolean("fair:toggle", drawerToggle == null || drawerToggle.isDrawerIndicatorEnabled());
|
outState.putBoolean("fair:toggle", drawerToggle == null || drawerToggle.isDrawerIndicatorEnabled());
|
||||||
|
outState.putBoolean("fair:initialized", initialized);
|
||||||
outState.putBoolean("fair:searching", searching);
|
outState.putBoolean("fair:searching", searching);
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue