Refactoring

This commit is contained in:
M66B
2022-03-31 08:47:23 +02:00
parent e4225f310b
commit a6681b7e51
2 changed files with 6 additions and 6 deletions

View File

@@ -1591,8 +1591,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
}
private void onGmail(Intent intent) {
FragmentGmail fragment = new FragmentGmail();
fragment.setArguments(intent.getExtras());
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.content_frame, new FragmentGmail()).addToBackStack("quick");
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("quick");
fragmentTransaction.commit();
}