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: 278655542
  • Loading branch information
sjudd authored and glide-copybara-robot committed Nov 5, 2019
1 parent d40198e commit bd6f894
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 bd6f894

@kangshifu
Copy link

Choose a reason for hiding this comment

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

which version should i use it ?

Please sign in to comment.