default constructor only in WizardDialog
This commit is contained in:
parent
8d05845c4f
commit
05f8c2d1ba
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue