Skip to content

Commit

Permalink
Switch to the support library version of ExifInterface
Browse files Browse the repository at this point in the history
Fixes #3851.

PiperOrigin-RevId: 278010807
  • Loading branch information
sjudd authored and glide-copybara-robot committed Nov 5, 2019
1 parent d40198e commit 02f47e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
api project(':annotation')
api "androidx.fragment:fragment:${ANDROID_X_VERSION}"
api "androidx.vectordrawable:vectordrawable-animated:${ANDROID_X_VERSION}"
api "androidx.exifinterface:exifinterface:${ANDROID_X_VERSION}"
compileOnly "androidx.appcompat:appcompat:${ANDROID_X_VERSION}"

if (project.plugins.hasPlugin('net.ltgt.errorprone')) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.bumptech.glide.load.resource.bitmap;

import android.media.ExifInterface;
import android.os.Build;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import androidx.exifinterface.media.ExifInterface;
import com.bumptech.glide.load.ImageHeaderParser;
import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
import com.bumptech.glide.util.ByteBufferUtil;
Expand All @@ -24,13 +24,13 @@ public final class ExifInterfaceImageHeaderParser implements ImageHeaderParser {

@NonNull
@Override
public ImageType getType(@NonNull InputStream is) throws IOException {
public ImageType getType(@NonNull InputStream is) {
return ImageType.UNKNOWN;
}

@NonNull
@Override
public ImageType getType(@NonNull ByteBuffer byteBuffer) throws IOException {
public ImageType getType(@NonNull ByteBuffer byteBuffer) {
return ImageType.UNKNOWN;
}

Expand Down

1 comment on commit 02f47e0

@kennehsq
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really cant understan this implementation. Can some one please walk me throuth it because am facing this error and am stuck

Please sign in to comment.