new Func3<String, String, int[], String>() {
@Override
public String call(String filePath, String filePathOutput, int[] dimens) {
String filePathScaled = imageUtils.scaleImage(filePath, filePathOutput, dimens);
new File(filePath).delete();
<BUG>MediaScannerConnection.scanFile(targetUi.getContext(), new String[]{filePathScaled}, new String[]{"image/jpeg"}, null);
return filePathScaled;</BUG>
}
});
}

new Func3<String, String, int[], String>() {
@Override
public String call(String filePath, String filePathOutput, int[] dimens) {
String filePathScaled = imageUtils.scaleImage(filePath, filePathOutput, dimens);
new File(filePath).delete();
MediaScannerConnection.scanFile(
targetUi.getContext(),
new String[]{filePathScaled},
new String[]{"image/*"},
null);
return filePathScaled;
}
});
}
