Skip to content

Commit

Permalink
Fix build errors in SingleRequestTest/ExifInterfaceImageHeaderParser.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudd committed Apr 25, 2018
1 parent 9fdb786 commit 633b6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.bumptech.glide.load.resource.bitmap;

import android.media.ExifInterface;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
import com.bumptech.glide.load.ImageHeaderParser;
import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
import com.bumptech.glide.util.ByteBufferUtil;
Expand All @@ -17,6 +19,7 @@
* now this is a simple way to ensure that HEIF files are oriented correctly on platforms where
* they're supported.
*/
@RequiresApi(Build.VERSION_CODES.O_MR1)
public final class ExifInterfaceImageHeaderParser implements ImageHeaderParser {

@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public void testRequestListenerIsCalledWithTarget() {

@Test
public void testRequestListenerIsCalledWithLoadedFromMemoryIfLoadCompletesSynchronously() {
SingleRequest<List> request = builder.addRequestListener(listener1).build();
final SingleRequest<List> request = builder.addRequestListener(listener1).build();

when(builder.engine
.load(
Expand Down

0 comments on commit 633b6f8

Please sign in to comment.