From 9c520e1dc54324e4211dc18b45afd479987e2cf3 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 1 Apr 2020 14:12:55 +0800 Subject: [PATCH] android:fix DoricPanel cannot build automaticaly --- doric-android/doric/src/main/java/pub/doric/DoricPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-android/doric/src/main/java/pub/doric/DoricPanel.java b/doric-android/doric/src/main/java/pub/doric/DoricPanel.java index 1ad19a75..c9731feb 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricPanel.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricPanel.java @@ -66,7 +66,7 @@ public class DoricPanel extends FrameLayout implements LifecycleObserver { public void config(DoricContext doricContext) { mDoricContext = doricContext; mDoricContext.getRootNode().setRootView(this); - if (getMeasuredWidth() != 0 && getMeasuredHeight() != 0) { + if (getMeasuredWidth() != 0 || getMeasuredHeight() != 0) { mDoricContext.build(DoricUtils.px2dp(getMeasuredWidth()), DoricUtils.px2dp(getMeasuredHeight())); } }