GH-329: (android) Fixes issue: Exif data lost on many cases (#331)

* GH-329 android: Fix Exif data lost when correctOrientation is true

* Changed variable name
This commit is contained in:
Álvaro Herrero 2019-02-21 16:51:54 +01:00 committed by Jan Piotrowski
parent b261d3174f
commit 81b878da59

View File

@ -988,6 +988,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
// read exifData of source
exifData = new ExifHelper();
exifData.createInFile(filePath);
exifData.readExifData();
// Use ExifInterface to pull rotation information
if (this.correctOrientation) {
ExifInterface exif = new ExifInterface(filePath);