You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/16 07:05:24 UTC
[4/4] incubator-weex git commit: bug fix for list cell add event has
none affect when cell not init
bug fix for list cell add event has none affect when cell not init
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/326c7b08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/326c7b08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/326c7b08
Branch: refs/heads/master
Commit: 326c7b084989097bc64f19abe00168ed4adaa5f0
Parents: dea22e9
Author: jianbai.gbj <ji...@alibaba-inc.com>
Authored: Thu Oct 12 20:23:34 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Mon Oct 16 15:04:38 2017 +0800
----------------------------------------------------------------------
.../src/main/java/com/taobao/weex/ui/component/WXComponent.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/326c7b08/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
index d801290..672f4aa 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXComponent.java
@@ -968,7 +968,9 @@ public abstract class WXComponent<T extends View> implements IWXObject, IWXActi
* @param type
*/
public void addEvent(String type) {
- if (TextUtils.isEmpty(type) || mAppendEvents.contains(type)) {
+ if (TextUtils.isEmpty(type)
+ || mAppendEvents.contains(type)
+ || getRealView() == null) {
return;
}
mAppendEvents.add(type);