Status Update
Comments
ji...@google.com <ji...@google.com> #2
Seems somewhat related to the accessibility requiring some sizes from the Layout node, over to Alex to triage properly.
In the meantime, ivanmitsura, could you provide a reproduction sample? Thanks would help us make it more actionable. Thanks
kl...@google.com <kl...@google.com> #3
ji...@google.com <ji...@google.com>
ib...@google.com <ib...@google.com> #4
To assignee:
The code path starts from root and goes down the tree to children. By the time some child is checked, its ancestor (which was attached at the time the child was found) is already detached, causing this crash. Though I'm not sure how or why it happens.
To reporter:
I have a Samsung galaxy s6 devices, and I tested our demo app. But I didn't observe a crash.
Unfortunately, it's hard to do anything about this issue without a repro. If you happen to narrow down your code to repro sample, please add it here.
Description
Version used: 1.3
Currently there is no way to copy all the Exif information between two image files. A typical use case would be for image editors, where instead of modifying the original photo, a copy of the image is made as the output result, which is a new bitmap encoded into a jpeg.
For such scenario it is needed to copy the original Exif information into the new created image file, and perform the pertinent Exif updates only in the attributes that must reflect a change.
The current solution is as next:
for (final ExifInterface.ExifTag[] tagList : ExifInterface.EXIF_TAGS) {
for (final ExifInterface.ExifTag entry : tagList) {
try {
final String value = sourceExif.getAttribute(
if (TextHelper.isEmpty(value) == false)
targetExif.setAttribute(
}
catch (Exception ex) {
// Log ....
}
}
}
This solution avoids having to create and maintain a gigantic copy-function with all the existing Exif tags.
Unfortunately, for this solution to work the ExifIntergace.ExifTag class and ExifInterface.EXIF_TAGS need to be public, which are currently not.
So, to go around this restriction and have access to them, the ExifIntergace source code has to be included directly as part of the project, instead of using it as an AndroidX library.
The request:
Please provide a way to copy all the ExifInformation tags, maybe something like:
targetExifInterface.copy(sourceExifInterface)
or alternatively please make public both, the ExifIntergace.ExifTag class and the ExifInterface.EXIF_TAGS
Thanks