解决方案很简单:
在你的嵌套Fragment 中的Activity 分发一下 onActivityResult 即可:
@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); FragmentManager fragmentManager = getSupportFragmentManager(); List<Fragment> fragmentList = fragmentManager.getFragments(); if (fragmentList != null) { for (Fragment fragment : fragmentList) { fragment.onActivityResult(requestCode, resultCode, data); } } }
No comments:
Post a Comment