I have a listfragment in an activity, a dialogfragment will open on pressing on a row for the further options, now I rotate the device and choose a option from dialogfragment, its throws an IllegalStateException .... Fragment is not attached.
choiceDialog
.setOnClickListDialogClickListener(new StandardListDialogFragment.OnClickListener<String>() {
@Override
public void onClick(DialogInterface dialog, int which,
String value) {
Intent intent = new Intent(myActivity,
DutyEditor.class);
startActivityForResult(intent, 0);
dialog.dismiss();
}
});
0 comments:
Post a Comment