Prevent crash

pull/194/merge
M66B 3 years ago
parent b8ba59160f
commit a7b55d5570

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

Loading…
Cancel
Save