Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android] modify interactionTime algorithm ,ignore fixd element (#1900
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lucky-chen authored and YorkShen committed Dec 12, 2018
1 parent 402f483 commit f745b79
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f745b79

Please sign in to comment.