Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b57efb2 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Unhide ExifThumbnail.getThumbnailRange() and make it match the comment.

Bug: 27579803
Change-Id: If9fe16976cfbc0760a6afb3043d35e0ee387945c
parent aac5bf1c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20132,6 +20132,7 @@ package android.media {
    method public int getAttributeInt(java.lang.String, int);
    method public boolean getLatLong(float[]);
    method public byte[] getThumbnail();
    method public long[] getThumbnailRange();
    method public boolean hasThumbnail();
    method public void saveAttributes() throws java.io.IOException;
    method public void setAttribute(java.lang.String, java.lang.String);
+1 −0
Original line number Diff line number Diff line
@@ -21623,6 +21623,7 @@ package android.media {
    method public int getAttributeInt(java.lang.String, int);
    method public boolean getLatLong(float[]);
    method public byte[] getThumbnail();
    method public long[] getThumbnailRange();
    method public boolean hasThumbnail();
    method public void saveAttributes() throws java.io.IOException;
    method public void setAttribute(java.lang.String, java.lang.String);
+1 −0
Original line number Diff line number Diff line
@@ -20197,6 +20197,7 @@ package android.media {
    method public int getAttributeInt(java.lang.String, int);
    method public boolean getLatLong(float[]);
    method public byte[] getThumbnail();
    method public long[] getThumbnailRange();
    method public boolean hasThumbnail();
    method public void saveAttributes() throws java.io.IOException;
    method public void setAttribute(java.lang.String, java.lang.String);
+5 −1
Original line number Diff line number Diff line
@@ -1052,12 +1052,16 @@ public class ExifInterface {
     *
     * @return two-element array, the offset in the first value, and length in
     *         the second, or {@code null} if no thumbnail was found.
     * @hide
     */
    public long[] getThumbnailRange() {
        if (!mHasThumbnail) {
            return null;
        }

        long[] range = new long[2];
        range[0] = mThumbnailOffset;
        range[1] = mThumbnailLength;

        return range;
    }