default constructor only in WizardDialog
This commit is contained in:
parent
8d05845c4f
commit
05f8c2d1ba
|
@ -93,8 +93,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener {
|
|||
}
|
||||
|
||||
|
||||
public WizardDialog(Context context) {
|
||||
this();
|
||||
public void setContext(Context context) {
|
||||
parentContext = context;
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,8 @@ public class OverviewFragment extends Fragment {
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
FragmentManager manager = getFragmentManager();
|
||||
WizardDialog wizardDialog = new WizardDialog(getContext());
|
||||
WizardDialog wizardDialog = new WizardDialog();
|
||||
wizardDialog.setContext(getContext());
|
||||
wizardDialog.show(manager, "WizardDialog");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue