Revert "Prevent crash"

This reverts commit 3114889282.
This commit is contained in:
M66B
2020-05-01 09:09:13 +02:00
parent 936f460ea6
commit 9a93354730

View File

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