diff --git a/doric-android/doric/src/main/java/pub/doric/DoricFragment.java b/doric-android/doric/src/main/java/pub/doric/DoricFragment.java index e24c9c03..86a85056 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricFragment.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricFragment.java @@ -15,6 +15,7 @@ */ package pub.doric; +import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -94,4 +95,15 @@ public class DoricFragment extends Fragment { view.setId(R.id.doric_mask_error); this.errorView = view; } + + @Override + public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { + super.onActivityResult(requestCode, resultCode, data); + for (Fragment fragment : getChildFragmentManager().getFragments()) { + fragment.onActivityResult(requestCode, resultCode, data); + for (Fragment childFragment : fragment.getChildFragmentManager().getFragments()) { + childFragment.onActivityResult(requestCode, resultCode, data); + } + } + } }