+60
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
When skipping over the EXIF chunk in the input file (and writing a new EXIF chunk to the output based on the internal Exif data of the class), it's important to skip both the chunk and any trailing padding byte (if the chunk size is odd). Without this fix the output of saveAttributes may be invalid (not decodable with BitmapFactory.decodeFile). Test: Added tests to ExifInterfaceTest to check the output of saveAttributes is always parsable with BitmapFactory. Bug: 253622642 Change-Id: I6b7c4612b830dbf95a12c42eac5d6301dfb15104