diff --git a/doric-android/doric/src/main/java/pub/doric/DoricActivity.java b/doric-android/doric/src/main/java/pub/doric/DoricActivity.java index 9611bf45..fe0aed61 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricActivity.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricActivity.java @@ -15,6 +15,7 @@ */ package pub.doric; +import android.content.Intent; import android.os.Bundle; import androidx.annotation.Nullable; @@ -60,4 +61,13 @@ public class DoricActivity extends AppCompatActivity { protected String getExtra() { return getIntent().getStringExtra("extra"); } + + @Override + protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { + super.onActivityResult(requestCode, resultCode, data); + int requestIndex = requestCode >> 16; + if (requestIndex == 0 && mDoricFragment != null) { + mDoricFragment.onActivityResult(requestCode, resultCode, data); + } + } }