Пример #1
0
 @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();
     }
   }
 }
Пример #2
0
 private Fragment addProductPhotoFragment(String imageType) {
   return ProductGalleryPhotoFragment.newInstance(imageType);
 }