You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/01 02:21:02 UTC
[5/7] incubator-weex git commit: * [android] fix remove 'fixed' comp
(#2744)
* [android] fix remove 'fixed' comp (#2744)
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/64b0edd0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/64b0edd0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/64b0edd0
Branch: refs/heads/0.11-dev
Commit: 64b0edd090484063aea28c3c2c1500c102edb94c
Parents: eaf7a25
Author: sospartan zheng <so...@apache.org>
Authored: Wed Mar 1 10:03:33 2017 +0800
Committer: GitHub <no...@github.com>
Committed: Wed Mar 1 10:03:33 2017 +0800
----------------------------------------------------------------------
.../main/java/com/taobao/weex/ui/component/WXComponent.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/64b0edd0/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 cd7a11b..73bbd16 100755
--- 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
@@ -1299,10 +1299,13 @@ public abstract class WXComponent<T extends View> implements IWXObject, IWXActi
}
removeAllEvent();
removeStickyStyle();
- if (mDomObj != null) {
- mDomObj = null;
+
+ View view;
+ if(mDomObj.isFixed() && (view = getHostView()) != null){
+ getInstance().removeFixedView(view);
}
+ mDomObj = null;
mIsDestroyed = true;
}