You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/01/16 09:52:01 UTC
[incubator-weex] branch master updated: [WEEX][Android] Weex Bugfix
For Scroller Remove Failed Because Of Edit Of Scroller Touch Event (#2036)
This is an automated email from the ASF dual-hosted git repository.
kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new c06a29d [WEEX][Android] Weex Bugfix For Scroller Remove Failed Because Of Edit Of Scroller Touch Event (#2036)
c06a29d is described below
commit c06a29d025a76baa6c822af322689e6f66772871
Author: codefurture <gu...@163.com>
AuthorDate: Wed Jan 16 17:51:56 2019 +0800
[WEEX][Android] Weex Bugfix For Scroller Remove Failed Because Of Edit Of Scroller Touch Event (#2036)
* [WEEX][Android] Weex Bugfix For Scroller Remove Failed Because Of Edit Of Scroller Touch Event
---
.../sdk/src/main/java/com/taobao/weex/ui/component/WXVContainer.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXVContainer.java b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXVContainer.java
index 3e801dd..ffa7669 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/component/WXVContainer.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/component/WXVContainer.java
@@ -331,7 +331,10 @@ public abstract class WXVContainer<T extends ViewGroup> extends WXComponent<T> {
getInstance().removeFixedView(child.getHostView());
} else if (getRealView() != null) {
if (!child.isVirtualComponent()) {
- ViewParent parent = child.getHostView().getParent();
+ ViewParent parent = null;
+ if(child.getHostView() != null){
+ parent = child.getHostView().getParent();
+ }
if(parent != null && parent instanceof ViewGroup){
((ViewGroup) parent).removeView(child.getHostView());
}else{