mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 05:37:07 +00:00
Save password instance state
This commit is contained in:
parent
1d7a6472f0
commit
bb31f099fb
1 changed files with 4 additions and 1 deletions
|
@ -306,8 +306,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|||
}
|
||||
}
|
||||
|
||||
if (savedInstanceState != null)
|
||||
if (savedInstanceState != null) {
|
||||
drawerToggle.setDrawerIndicatorEnabled(savedInstanceState.getBoolean("fair:toggle"));
|
||||
password = savedInstanceState.getString("fair:password");
|
||||
}
|
||||
|
||||
DB.getInstance(this).account().liveSynchronizingAccounts().observe(this, new Observer<List<EntityAccount>>() {
|
||||
@Override
|
||||
|
@ -320,6 +322,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|||
@Override
|
||||
protected void onSaveInstanceState(Bundle outState) {
|
||||
outState.putBoolean("fair:toggle", drawerToggle.isDrawerIndicatorEnabled());
|
||||
outState.putString("fair:password", password);
|
||||
super.onSaveInstanceState(outState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue