@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == RequestCodes.IMAGE_CAPTURE && resultCode == Activity.RESULT_OK) { String sourceFragmentKey = data.getStringExtra("source"); for (ProductGalleryPhotoFragment pf : getProductGalleryPhotoFragments()) { pf.refresh(); } } }
private Fragment addProductPhotoFragment(String imageType) { return ProductGalleryPhotoFragment.newInstance(imageType); }