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:
@@ -1359,7 +1359,7 @@ public class ExifInterface {
|
||||
if (file == null) {
|
||||
throw new NullPointerException("file cannot be null");
|
||||
}
|
||||
initForFilename(file.getName());
|
||||
initForFilename(file.getAbsolutePath());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user