Loading media/java/android/media/ExifInterface.java +13 −12 Original line number Diff line number Diff line Loading @@ -2540,20 +2540,21 @@ public class ExifInterface { if (position < 0) { return -1; } try { if (mPosition != position) { in.seek(position); mPosition = position; } int bytesRead = in.read(buffer, offset, size); if (bytesRead < 0) { mPosition = -1; // need to seek on next read return -1; } if (bytesRead >= 0) { mPosition += bytesRead; return bytesRead; } } catch (IOException e) {} mPosition = -1; // need to seek on next read return -1; } @Override public long getSize() throws IOException { Loading Loading
media/java/android/media/ExifInterface.java +13 −12 Original line number Diff line number Diff line Loading @@ -2540,20 +2540,21 @@ public class ExifInterface { if (position < 0) { return -1; } try { if (mPosition != position) { in.seek(position); mPosition = position; } int bytesRead = in.read(buffer, offset, size); if (bytesRead < 0) { mPosition = -1; // need to seek on next read return -1; } if (bytesRead >= 0) { mPosition += bytesRead; return bytesRead; } } catch (IOException e) {} mPosition = -1; // need to seek on next read return -1; } @Override public long getSize() throws IOException { Loading