1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Prevent crash

This commit is contained in:
M66B 2021-10-31 19:10:36 +01:00
parent b8ba59160f
commit a7b55d5570

View file

@ -225,11 +225,11 @@ public class FragmentBase extends Fragment {
Log.i("Create " + this + " saved=" + (savedInstanceState != null));
super.onCreate(savedInstanceState);
Bundle args = getArguments();
if (args == null)
setArguments(new Bundle());
if (savedInstanceState != null) {
if (savedInstanceState == null) {
Bundle args = getArguments();
if (args == null)
setArguments(new Bundle());
} else {
subtitle = savedInstanceState.getString("fair:subtitle");
requestKey = savedInstanceState.getString("fair:requestKey");
}