|
|
@ -148,7 +148,9 @@ public class FragmentDialogBase extends DialogFragment {
|
|
|
|
once = true;
|
|
|
|
once = true;
|
|
|
|
Fragment target = getTargetFragment();
|
|
|
|
Fragment target = getTargetFragment();
|
|
|
|
Log.i("Dialog target=" + target + " result=" + result);
|
|
|
|
Log.i("Dialog target=" + target + " result=" + result);
|
|
|
|
if (target != null) {
|
|
|
|
if (target != null &&
|
|
|
|
|
|
|
|
target.getView() != null &&
|
|
|
|
|
|
|
|
target.getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
|
|
|
|
Intent data = new Intent();
|
|
|
|
Intent data = new Intent();
|
|
|
|
data.putExtra("args", getArguments());
|
|
|
|
data.putExtra("args", getArguments());
|
|
|
|
target.onActivityResult(getTargetRequestCode(), result, data);
|
|
|
|
target.onActivityResult(getTargetRequestCode(), result, data);
|
|
|
|