Fixed hardcoded jpegQuality on android when saving to temp and disk

This commit is contained in:
Petter Solberg 2017-11-08 17:15:48 +01:00
parent 59a0b44c71
commit e11ed2fb52

View File

@ -618,7 +618,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
}
try {
mutableImage.writeDataToFile(pictureFile, options, 85);
mutableImage.writeDataToFile(pictureFile, options, jpegQualityPercent);
} catch (IOException e) {
promise.reject("failed to save image file", e);
return;
@ -636,7 +636,7 @@ public class RCTCameraModule extends ReactContextBaseJavaModule
}
try {
mutableImage.writeDataToFile(tempFile, options, 85);
mutableImage.writeDataToFile(tempFile, options, jpegQualityPercent);
} catch (IOException e) {
promise.reject("failed to save image file", e);
return;