mirror of https://github.com/M66B/FairEmail.git
Save/restore certificate alias
This commit is contained in:
parent
bda49eb55f
commit
eede8c5bdc
|
@ -1398,6 +1398,7 @@ public class FragmentAccount extends FragmentBase {
|
|||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
outState.putInt("fair:provider", spProvider.getSelectedItemPosition());
|
||||
outState.putString("fair:certificate", certificate);
|
||||
outState.putString("fair:password", tilPassword.getEditText().getText().toString());
|
||||
outState.putInt("fair:advanced", grpAdvanced.getVisibility());
|
||||
outState.putInt("fair:auth", auth);
|
||||
|
@ -1538,6 +1539,9 @@ public class FragmentAccount extends FragmentBase {
|
|||
spProvider.setTag(p);
|
||||
spProvider.setSelection(p);
|
||||
|
||||
certificate = savedInstanceState.getString("fair:certificate");
|
||||
tvCertificate.setText(certificate == null ? getString(R.string.title_optional) : certificate);
|
||||
|
||||
tilPassword.getEditText().setText(savedInstanceState.getString("fair:password"));
|
||||
grpAdvanced.setVisibility(savedInstanceState.getInt("fair:advanced"));
|
||||
auth = savedInstanceState.getInt("fair:auth");
|
||||
|
|
|
@ -1047,6 +1047,7 @@ public class FragmentIdentity extends FragmentBase {
|
|||
public void onSaveInstanceState(Bundle outState) {
|
||||
outState.putInt("fair:account", spAccount.getSelectedItemPosition());
|
||||
outState.putInt("fair:provider", spProvider.getSelectedItemPosition());
|
||||
outState.putString("fair:certificate", certificate);
|
||||
outState.putString("fair:password", tilPassword.getEditText().getText().toString());
|
||||
outState.putInt("fair:advanced", grpAdvanced.getVisibility());
|
||||
outState.putInt("fair:auth", auth);
|
||||
|
@ -1153,6 +1154,9 @@ public class FragmentIdentity extends FragmentBase {
|
|||
}
|
||||
}.execute(FragmentIdentity.this, new Bundle(), "identity:count");
|
||||
} else {
|
||||
certificate = savedInstanceState.getString("fair:certificate");
|
||||
tvCertificate.setText(certificate == null ? getString(R.string.title_optional) : certificate);
|
||||
|
||||
tilPassword.getEditText().setText(savedInstanceState.getString("fair:password"));
|
||||
grpAdvanced.setVisibility(savedInstanceState.getInt("fair:advanced"));
|
||||
auth = savedInstanceState.getInt("fair:auth");
|
||||
|
|
Loading…
Reference in New Issue