summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-02-05 14:39:57 -0800
committerSvetoslav <svetoslavganov@google.com>2013-02-05 14:40:25 -0800
commitf006ec43aebace3eb45a8ea94c2bdedd29cc5416 (patch)
treeda35469ec87eb25811118371f7dcd0cb2e50e821 /library
parent75717f386e9492c275f5c354095dcd5a87ea5da3 (diff)
downloaduiautomator-f006ec43aebace3eb45a8ea94c2bdedd29cc5416.tar.gz
Update for renamed APIs
Change-Id: I4703830d6554f16abfd03c2e162a317f278cc005
Diffstat (limited to 'library')
-rw-r--r--library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java2
-rw-r--r--library/core-src/com/android/uiautomator/core/UiSelector.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java b/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
index 295bc06..aae9cf2 100644
--- a/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
+++ b/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
@@ -100,7 +100,7 @@ public class AccessibilityNodeInfoDumper {
serializer.attribute("", "NAF", Boolean.toString(true));
serializer.attribute("", "index", Integer.toString(index));
serializer.attribute("", "text", safeCharSeqToString(node.getText()));
- serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewId()));
+ serializer.attribute("", "resource-id", safeCharSeqToString(node.getViewIdResourceName()));
serializer.attribute("", "class", safeCharSeqToString(node.getClassName()));
serializer.attribute("", "package", safeCharSeqToString(node.getPackageName()));
serializer.attribute("", "content-desc", safeCharSeqToString(node.getContentDescription()));
diff --git a/library/core-src/com/android/uiautomator/core/UiSelector.java b/library/core-src/com/android/uiautomator/core/UiSelector.java
index 68f37e4..d16aff7 100644
--- a/library/core-src/com/android/uiautomator/core/UiSelector.java
+++ b/library/core-src/com/android/uiautomator/core/UiSelector.java
@@ -772,7 +772,7 @@ public class UiSelector {
}
break;
case UiSelector.SELECTOR_RESOURCE_ID:
- if (node.getViewId() != getString(criterion)) {
+ if (node.getViewIdResourceName() != getString(criterion)) {
return false;
}
break;