From bcb0f2d9e4e38a4097d978eb6ee738025c4a6c0a Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 7 Apr 2022 17:41:53 +0800 Subject: [PATCH] android: expose more API from ImageNode --- .../doric/src/main/java/pub/doric/shader/ImageNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/ImageNode.java b/doric-android/doric/src/main/java/pub/doric/shader/ImageNode.java index d5f1dca7..dd6ebafb 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/ImageNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/ImageNode.java @@ -249,7 +249,7 @@ public class ImageNode extends ViewNode { } } - private void loadImageUrl(String url) { + protected void loadImageUrl(String url) { Context context = DoricUtils.unwrap(getContext()); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { if (context instanceof Activity && ((Activity) context).isDestroyed()) { @@ -262,7 +262,7 @@ public class ImageNode extends ViewNode { } - private void loadIntoTarget(RequestBuilder requestBuilder) { + protected void loadIntoTarget(RequestBuilder requestBuilder) { try { requestBuilder = requestBuilder.apply(new RequestOptions().override(Target.SIZE_ORIGINAL)); if (isBlur) {