ExifInterface: Fix ClassCastException

The private method handleThumbnailFromStrips() was written on the
wrong assumption where the values of some EXIF attributes will be
always long[]. However those values can be int[], which causes a
ClassCastException. This CL fixes the exception by checking the
instance type before casting.

Bug: 35719948
Test: Manually tested with an image file which was manipulated
      to have the problematic int[] attributes.
Change-Id: I4884801a8cb208c0cb72cfa696dea3bfcda29adf
1 file changed