summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Hair <allenhair@google.com>2013-11-18 19:30:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-18 19:30:48 +0000
commitee94db3b121a3c6715c9f4cea38614f875c4ca2c (patch)
tree4ba1b12b7d181314a6a58032d7aa52527e2a1dd9
parent62ccedc23bd3c3e91b6c5ef0779d7964e74cf199 (diff)
parentb2e353eca3f1309c506bf4ae3cc2bb271f4f7e17 (diff)
downloaduiautomator-kitkat-mr1.1-release.tar.gz
-rw-r--r--src/com/android/uiautomator/core/QueryController.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/com/android/uiautomator/core/QueryController.java b/src/com/android/uiautomator/core/QueryController.java
index 6931528..194af4c 100644
--- a/src/com/android/uiautomator/core/QueryController.java
+++ b/src/com/android/uiautomator/core/QueryController.java
@@ -146,17 +146,15 @@ class QueryController {
if (DEBUG)
Log.d(LOG_TAG, "Searching: " + selector);
- synchronized (mLock) {
- AccessibilityNodeInfo rootNode = getRootNode();
- if (rootNode == null) {
- Log.e(LOG_TAG, "Cannot proceed when root node is null. Aborted search");
- return null;
- }
-
- // Copy so that we don't modify the original's sub selectors
- UiSelector uiSelector = new UiSelector(selector);
- return translateCompoundSelector(uiSelector, rootNode, isCounting);
+ AccessibilityNodeInfo rootNode = getRootNode();
+ if (rootNode == null) {
+ Log.e(LOG_TAG, "Cannot proceed when root node is null. Aborted search");
+ return null;
}
+
+ // Copy so that we don't modify the original's sub selectors
+ UiSelector uiSelector = new UiSelector(selector);
+ return translateCompoundSelector(uiSelector, rootNode, isCounting);
}
/**