[go: nahoru, domu]

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

Commit

Permalink
* [android] Fix interctionTime (#1397)
Browse files Browse the repository at this point in the history
Fix #1396
  • Loading branch information
miomin authored and YorkShen committed Aug 6, 2018
1 parent 52b66e5 commit d7c949b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void setIndex(int index){
public void executeAction() {
super.executeAction();
try {
if (!TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus"))
if (!TextUtils.equals(mComponentType, "video") && !TextUtils.equals(mComponentType, "videoplus"))
child.mIsAddElementToTree = true;

parent.addChild(child, mIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void executeAction() {
return;
}

if (component.getHostView() != null && !TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus")) {
if (component.getHostView() != null && !TextUtils.equals(component.getComponentType(), "video") && !TextUtils.equals(component.getComponentType(), "videoplus")) {
int[] location = new int[2] ;
component.getHostView().getLocationInWindow(location);
component.getInstance().onChangeElement(oldParent, location[1] > component.getInstance().getWeexHeight() + 1);
Expand All @@ -55,7 +55,7 @@ public void executeAction() {

((WXVContainer) newParent).addChild(component, mIndex);

if (component.getHostView() != null && !TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus")) {
if (component.getHostView() != null && !TextUtils.equals(component.getComponentType(), "video") && !TextUtils.equals(component.getComponentType(), "videoplus")) {
int[] location = new int[2] ;
component.getHostView().getLocationInWindow(location);
component.getInstance().onChangeElement(newParent, location[1] > component.getInstance().getWeexHeight() + 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void executeAction() {
clearRegistryForComponent(component);
WXVContainer parent = component.getParent();

if (component.getHostView() != null && !TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus")) {
if (component.getHostView() != null && !TextUtils.equals(component.getComponentType(), "video") && !TextUtils.equals(component.getComponentType(), "videoplus")) {
int[] location = new int[2];
component.getHostView().getLocationInWindow(location);
component.getInstance().onChangeElement(parent, location[1] > component.getInstance().getWeexHeight() + 1);
Expand Down

0 comments on commit d7c949b

Please sign in to comment.