From 203fdcaa40e34458683eb214bce104260a6b8819 Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Thu, 28 Jan 2016 17:06:17 -0800 Subject: [PATCH] Support fade for remote images in React with nodes. Reviewed By: dkoroskin Differential Revision: D2804997 fb-gh-sync-id: e143fc16c07856e56182cba6d0eb2884a95c7318 --- .../java/com/facebook/react/views/image/ReactImageView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java index c627bdc6e..be57d799d 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java @@ -23,20 +23,20 @@ import android.graphics.Rect; import android.graphics.RectF; import android.graphics.Shader; import android.graphics.drawable.Animatable; +import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.SystemClock; import com.facebook.common.util.UriUtil; import com.facebook.drawee.controller.AbstractDraweeControllerBuilder; -import com.facebook.drawee.drawable.AutoRotateDrawable; import com.facebook.drawee.controller.BaseControllerListener; import com.facebook.drawee.controller.ControllerListener; import com.facebook.drawee.controller.ForwardingControllerListener; +import com.facebook.drawee.drawable.AutoRotateDrawable; import com.facebook.drawee.drawable.ScalingUtils; import com.facebook.drawee.generic.GenericDraweeHierarchy; import com.facebook.drawee.generic.GenericDraweeHierarchyBuilder; import com.facebook.drawee.generic.RoundingParams; -import com.facebook.drawee.interfaces.DraweeController; import com.facebook.drawee.view.GenericDraweeView; import com.facebook.imagepipeline.common.ResizeOptions; import com.facebook.imagepipeline.image.ImageInfo; @@ -55,7 +55,7 @@ import com.facebook.react.uimanager.events.EventDispatcher; */ public class ReactImageView extends GenericDraweeView { - private static final int REMOTE_IMAGE_FADE_DURATION_MS = 300; + public static final int REMOTE_IMAGE_FADE_DURATION_MS = 300; /* * Implementation note re rounded corners: