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/26 04:28:33 UTC

[1/2] incubator-weex git commit: * [android] memory optimization for box-shadow

Repository: incubator-weex
Updated Branches:
  refs/heads/release-0.16 6e413271d -> 3433218e8


* [android] memory optimization for box-shadow


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2326054e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2326054e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2326054e

Branch: refs/heads/release-0.16
Commit: 2326054e9994de9d85922eede50531820dfee632
Parents: 696ddc0
Author: misakuo <mi...@apache.org>
Authored: Thu Oct 26 11:38:14 2017 +0800
Committer: misakuo <mi...@apache.org>
Committed: Thu Oct 26 11:38:14 2017 +0800

----------------------------------------------------------------------
 .../main/java/com/taobao/weex/ui/component/WXComponent.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2326054e/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 d5aed04..ba27602 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
@@ -932,6 +932,14 @@ public abstract class  WXComponent<T extends View> implements IWXObject, IWXActi
       return;
     }
 
+    if (getDomObject() != null && getDomObject().getStyles() != null) {
+      Object obj = getDomObject().getStyles().get(Constants.Name.BOX_SHADOW);
+      if (obj == null) {
+        WXLogUtils.d("BoxShadow", "no box-shadow");
+        return;
+      }
+    }
+
     View target = mHost;
     if (this instanceof WXVContainer) {
       target = ((WXVContainer) this).getBoxShadowHost(true);


[2/2] incubator-weex git commit: * [android] memory optimization for box-shadow

Posted by gu...@apache.org.
* [android] memory optimization for box-shadow


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/3433218e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/3433218e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/3433218e

Branch: refs/heads/release-0.16
Commit: 3433218e8ed2cd0123df2c9b8233946d9220759f
Parents: 6e41327 2326054
Author: gurisxie <27...@qq.com>
Authored: Thu Oct 26 12:27:33 2017 +0800
Committer: gurisxie <27...@qq.com>
Committed: Thu Oct 26 12:28:17 2017 +0800

----------------------------------------------------------------------
 .../main/java/com/taobao/weex/ui/component/WXComponent.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------