ExifInterface: Accept decimal values for RATIONAL formats

Prior to android N, ExifInterface.setAttributes() accepted the
decimal values for SRATIONAL/URATIONAL formats. However in the support
library (and also in android N), decimal values for RATIONAL formats
are rejected. Since this behavior breaks the backward compatibility,
we should make setAttributes() accept decimal values as before.

Bug: 34269464
Test: manually tested with an app
Change-Id: Icacbbbc7d3068e5c6dbb15cba37398bd8764a5c8
1 file changed