weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sospar...@apache.org
Subject [5/7] incubator-weex git commit: * [android] fix remove 'fixed' comp (#2744)
Date Wed, 01 Mar 2017 02:21:02 GMT
* [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 <sospartan@apache.org>
Authored: Wed Mar 1 10:03:33 2017 +0800
Committer: GitHub <noreply@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;
   }
 


Mime
View raw message