You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/12/12 08:30:46 UTC

[GitHub] YorkShen closed pull request #1900: * [Android] modify interactionTime algorithm ,ignore fixd element

YorkShen closed pull request #1900: * [Android] modify interactionTime algorithm ,ignore fixd element
URL: https://github.com/apache/incubator-weex/pull/1900
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionAddElement.java b/android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionAddElement.java
index 2a3b5da8b3..9db1ee16ab 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionAddElement.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionAddElement.java
@@ -84,8 +84,14 @@ public GraphicActionAddElement(@NonNull WXSDKInstance instance, String ref,
       if (null != parent && parent.isIgnoreInteraction){
         child.isIgnoreInteraction = true;
       }
-      if (null!= child && null != child.getAttrs() && "1".equals(child.getAttrs().get("ignoreInteraction"))){
-        child.isIgnoreInteraction = true;
+      if (!child.isIgnoreInteraction ){
+        Object flag = null;
+        if (null != child.getAttrs()){
+          flag = child.getAttrs().get("ignoreInteraction");
+        }
+        if ("1".equals(flag) || "true".equals(flag) || child.isFixed()){
+          child.isIgnoreInteraction = true;
+        }
       }
 
     } catch (ClassCastException e) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services