Fix recent ExifInterface regression.

It needs to open files using absolute path, not relative path.

Bug: 128782519
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I173b7b5dcb3c351b8554547e89e5441f9bdb19d1
This commit is contained in:
Jeff Sharkey
2019-03-17 11:05:53 -06:00
parent 9bb54f203e
commit cdc1dfd1bd

View File

@@ -1359,7 +1359,7 @@ public class ExifInterface {
if (file == null) {
throw new NullPointerException("file cannot be null");
}
initForFilename(file.getName());
initForFilename(file.getAbsolutePath());
}
/**