default constructor only in WizardDialog

This commit is contained in:
Milos Kozak 2016-10-21 22:00:14 +02:00
parent 8d05845c4f
commit 05f8c2d1ba
2 changed files with 3 additions and 3 deletions

View file

@ -93,8 +93,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener {
} }
public WizardDialog(Context context) { public void setContext(Context context) {
this();
parentContext = context; parentContext = context;
} }

View file

@ -153,7 +153,8 @@ public class OverviewFragment extends Fragment {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
FragmentManager manager = getFragmentManager(); FragmentManager manager = getFragmentManager();
WizardDialog wizardDialog = new WizardDialog(getContext()); WizardDialog wizardDialog = new WizardDialog();
wizardDialog.setContext(getContext());
wizardDialog.show(manager, "WizardDialog"); wizardDialog.show(manager, "WizardDialog");
} }
}); });