@Override protected void addImage(Bitmap bitmap) { ReviewObject revob = getRevob(); String imagePath = ImageUtils.save(bitmap, revob.getModelId() + "_" + revob.getImages().size(), getActivity()); new Image(imagePath, false, revob).save(); }
private ReviewObject getRevob() { return ReviewObject.getByModelId(ReviewObject.class, getArguments().getString(RELATED_ID)); }