android: fix list item cannot response click action

This commit is contained in:
pengfei.zhou 2021-11-11 14:12:49 +08:00 committed by osborn
parent f448692896
commit af77a0e98e

View File

@ -1207,7 +1207,9 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
setRotationX(0);
setRotationY(0);
mView.setPadding(0, 0, 0, 0);
if (mView.hasOnClickListeners()) {
mView.setOnClickListener(null);
}
DoricLayer doricLayer = this.doricLayer;
if (mView instanceof DoricLayer) {
doricLayer = (DoricLayer) mView;