mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
4cf5bce2c4
commit
bd0853f594
|
@ -3195,9 +3195,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
fragment.setArguments(nargs);
|
||||
|
||||
int res = (pane ? R.id.content_pane : R.id.content_frame);
|
||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(res, fragment).addToBackStack("thread");
|
||||
fragmentTransaction.commit();
|
||||
if (getActivity() != null && getActivity().findViewById(res) != null) {
|
||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(res, fragment).addToBackStack("thread");
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue