Skip to content

Commit

Permalink
Fix Gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
tyronen committed Apr 7, 2015
1 parent 4d54dde commit 79ae74e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

package com.facebook.imagepipeline.animated.factory;

import java.util.ArrayList;
import java.util.List;

import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Build;
Expand All @@ -31,6 +29,9 @@
import com.facebook.imagepipeline.memory.PooledByteBuffer;
import com.facebook.imagepipeline.webp.WebPImage;

import java.util.ArrayList;
import java.util.List;

/**
* Decoder for animated images.
*/
Expand Down Expand Up @@ -158,6 +159,7 @@ public CloseableReference<Bitmap> getCachedBitmap(int frameNumber) {
return bitmaps;
}

@SuppressLint("NewApi")
private CloseableReference<Bitmap> createBitmap(int width, int height) {
CloseableReference<Bitmap> bitmap = mBitmapFactory.createBitmap(width, height);
bitmap.get().eraseColor(Color.TRANSPARENT);
Expand Down

0 comments on commit 79ae74e

Please sign in to comment.