i have an issue here whenever the editor intent is activated, the sdk automatic saves the image to the gallery. And again once after the edit is done within the intent. How do i prevent the automatic saving here?
AdobeImageEditorActivity.class
protected void performSave(Bitmap bitmap, Uri saveUri, CompressFormat outputFormat, int quality, boolean hires, AdobeImageEditorActivity.FinalAction action) {
logger.info("performSave, uri:%s, quality: %d, action:%s", new Object[]{saveUri, Integer.valueOf(quality), action});
File destFile;
if(saveUri != null) {
destFile = new File(saveUri.getPath());
} else {
destFile = this.getDefaultOutputDestination(outputFormat);
}
try {
logger.log("trying to create the new file...");
if(!destFile.exists() && !destFile.createNewFile()) {
logger.error("Failed to create the file");
}
} catch (IOException var11) {
var11.printStackTrace();
try {
logger.error("using a temporary file!");
destFile = File.createTempFile("aviary-image-", ".jpeg");
} catch (IOException var10) {
var10.printStackTrace();
}
}
LocalDataService service = (LocalDataService)this.getMainController().getService(LocalDataService.class);
assert service != null;
service.setDestImageUri(Uri.parse(destFile.getAbsolutePath()));
AdobeImageEditorActivity.SaveHiResImageTask mSaveTask = new AdobeImageEditorActivity.SaveHiResImageTask(destFile, action, outputFormat, quality, hires);
mSaveTask.execute(new Bitmap[]{bitmap});
}
i realized the above code might be actually performing that save, however it is a automatic generated file, is there any ways i can do to prevent the saving occurring?