mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Prevent crash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user