Skip to content

Commit d7c949b

Browse files
miominYorkShen
authored andcommitted
* [android] Fix interctionTime (apache#1397)
Fix apache#1396
1 parent 52b66e5 commit d7c949b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionAddElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void setIndex(int index){
159159
public void executeAction() {
160160
super.executeAction();
161161
try {
162-
if (!TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus"))
162+
if (!TextUtils.equals(mComponentType, "video") && !TextUtils.equals(mComponentType, "videoplus"))
163163
child.mIsAddElementToTree = true;
164164

165165
parent.addChild(child, mIndex);

android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionMoveElement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void executeAction() {
4545
return;
4646
}
4747

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

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

58-
if (component.getHostView() != null && !TextUtils.equals("mComponentType", "video") && !TextUtils.equals("mComponentType", "videoplus")) {
58+
if (component.getHostView() != null && !TextUtils.equals(component.getComponentType(), "video") && !TextUtils.equals(component.getComponentType(), "videoplus")) {
5959
int[] location = new int[2] ;
6060
component.getHostView().getLocationInWindow(location);
6161
component.getInstance().onChangeElement(newParent, location[1] > component.getInstance().getWeexHeight() + 1);

android/sdk/src/main/java/com/taobao/weex/ui/action/GraphicActionRemoveElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void executeAction() {
3838
clearRegistryForComponent(component);
3939
WXVContainer parent = component.getParent();
4040

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

0 commit comments

Comments
 (0)