android: fix corner and hidden property conflict

This commit is contained in:
pengfei.zhou 2021-04-07 15:45:17 +08:00 committed by osborn
parent 0363e5d207
commit c6a6f76504

View File

@ -504,7 +504,10 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
break; break;
case "hidden": case "hidden":
if (prop.isBoolean()) { 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; break;
case "flexConfig": case "flexConfig":