File tree 2 files changed +4
-3
lines changed
src/main/java/com/bumptech/glide/load/resource/bitmap
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ dependencies {
14
14
api project(' :annotation' )
15
15
api " androidx.fragment:fragment:${ ANDROID_X_VERSION} "
16
16
api " androidx.vectordrawable:vectordrawable-animated:${ ANDROID_X_VERSION} "
17
+ api " androidx.exifinterface:exifinterface:${ ANDROID_X_VERSION} "
17
18
compileOnly " androidx.appcompat:appcompat:${ ANDROID_X_VERSION} "
18
19
19
20
if (project. plugins. hasPlugin(' net.ltgt.errorprone' )) {
Original file line number Diff line number Diff line change 1
1
package com .bumptech .glide .load .resource .bitmap ;
2
2
3
- import android .media .ExifInterface ;
4
3
import android .os .Build ;
5
4
import androidx .annotation .NonNull ;
6
5
import androidx .annotation .RequiresApi ;
6
+ import androidx .exifinterface .media .ExifInterface ;
7
7
import com .bumptech .glide .load .ImageHeaderParser ;
8
8
import com .bumptech .glide .load .engine .bitmap_recycle .ArrayPool ;
9
9
import com .bumptech .glide .util .ByteBufferUtil ;
@@ -24,13 +24,13 @@ public final class ExifInterfaceImageHeaderParser implements ImageHeaderParser {
24
24
25
25
@ NonNull
26
26
@ Override
27
- public ImageType getType (@ NonNull InputStream is ) throws IOException {
27
+ public ImageType getType (@ NonNull InputStream is ) {
28
28
return ImageType .UNKNOWN ;
29
29
}
30
30
31
31
@ NonNull
32
32
@ Override
33
- public ImageType getType (@ NonNull ByteBuffer byteBuffer ) throws IOException {
33
+ public ImageType getType (@ NonNull ByteBuffer byteBuffer ) {
34
34
return ImageType .UNKNOWN ;
35
35
}
36
36
You can’t perform that action at this time.
1 commit comments
kangshifu commentedon Jan 2, 2020
which version should i use it ?