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 fa814af * [Android] Only Scroller Use Real View Remove, For List use
old logic because On XiaoMi May Not Render Right. (#2099)
fa814af is described below
commit fa814afa2015c81cc1398296e4693a4361fef86b
Author: codefurture <[email protected]>
AuthorDate: Thu Jan 31 14:36:25 2019 +0800
* [Android] Only Scroller Use Real View Remove, For List use old logic
because On XiaoMi May Not Render Right. (#2099)
---
.../src/main/java/com/taobao/weex/ui/component/WXVContainer.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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 ffa7669..167eeb5 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
@@ -332,8 +332,10 @@ public abstract class WXVContainer<T extends ViewGroup>
extends WXComponent<T> {
} else if (getRealView() != null) {
if (!child.isVirtualComponent()) {
ViewParent parent = null;
- if(child.getHostView() != null){
- parent = child.getHostView().getParent();
+ if(child.getParent() instanceof WXScroller){
+ if(child.getHostView() != null){
+ parent = child.getHostView().getParent();
+ }
}
if(parent != null && parent instanceof ViewGroup){
((ViewGroup) parent).removeView(child.getHostView());