Prevent crash

This commit is contained in:
M66B 2022-03-31 17:33:37 +02:00
parent bfdc2221a6
commit e163ab581a
1 changed files with 3 additions and 1 deletions

View File

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