summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2012-05-08 23:09:24 -0700
committerGuang Zhu <guangzhu@google.com>2012-05-09 14:32:15 -0700
commitdf549f83810c6fa76be1845363ef69809a30e569 (patch)
tree800d0bfc5625be36e253cc19879d43c701ecd8ed /core/java
parentbad417df657128a988b23a6b70b4d08633e4ac5a (diff)
downloadframeworks_base-df549f83810c6fa76be1845363ef69809a30e569.zip
frameworks_base-df549f83810c6fa76be1845363ef69809a30e569.tar.gz
frameworks_base-df549f83810c6fa76be1845363ef69809a30e569.tar.bz2
Make UiTestAutomationBridge see non-important views again
This problem was introduced in I74df9c24. The intention of the change was still let UiTestAutomationBridge see the non-important views, but there were bugs in the implementation: 1. AccessibilityManagerService was not really updating mIncludeNotImportantViews when mIsAutomation is true 2. Wrong constant is used to set the flag Change-Id: Ia0a2e9ed9720bd0ea3a563e0b492e870a6ec1586
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/accessibilityservice/UiTestAutomationBridge.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/accessibilityservice/UiTestAutomationBridge.java b/core/java/android/accessibilityservice/UiTestAutomationBridge.java
index 69195c1..30be374 100644
--- a/core/java/android/accessibilityservice/UiTestAutomationBridge.java
+++ b/core/java/android/accessibilityservice/UiTestAutomationBridge.java
@@ -83,7 +83,7 @@ public class UiTestAutomationBridge {
* @return The event.
*/
public AccessibilityEvent getLastAccessibilityEvent() {
- return mLastEvent;
+ return mLastEvent;
}
/**
@@ -142,7 +142,7 @@ public class UiTestAutomationBridge {
@Override
public void onInterrupt() {
- UiTestAutomationBridge.this.onInterrupt();
+ UiTestAutomationBridge.this.onInterrupt();
}
@Override
@@ -189,7 +189,7 @@ public class UiTestAutomationBridge {
final AccessibilityServiceInfo info = new AccessibilityServiceInfo();
info.eventTypes = AccessibilityEvent.TYPES_ALL_MASK;
info.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC;
- info.flags |= AccessibilityNodeInfo.INCLUDE_NOT_IMPORTANT_VIEWS;
+ info.flags |= AccessibilityServiceInfo.INCLUDE_NOT_IMPORTANT_VIEWS;
try {
manager.registerUiTestAutomationService(mListener, info);