From c6a6f76504a7df29a90235a9f125db65ce8c987d Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 7 Apr 2021 15:45:17 +0800 Subject: [PATCH] android: fix corner and hidden property conflict --- .../doric/src/main/java/pub/doric/shader/ViewNode.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/ViewNode.java b/doric-android/doric/src/main/java/pub/doric/shader/ViewNode.java index 01ffd4d6..d396f4df 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/ViewNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/ViewNode.java @@ -504,7 +504,10 @@ public abstract class ViewNode extends DoricContextHolder { break; case "hidden": if (prop.isBoolean()) { - getNodeView().setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE); + if (doricLayer != null) { + doricLayer.setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE); + } + mView.setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE); } break; case "flexConfig":