From 31725b3f387dacf018804e3c500d693261f1d994 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Mon, 16 Apr 2012 19:28:22 -0700 Subject: [PATCH] Fixing a regression I have introduced. bug:6344558 Change-Id: Ie726e091942e337962baa052953002be724068b1 --- .../AccessibilityManagerService.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java index 754a4dde793a5..ed2a6c04677b6 100644 --- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -1004,14 +1004,16 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub mNotificationTimeout = info.notificationTimeout; mIsDefault = (info.flags & DEFAULT) != 0; - final int targetSdkVersion = - info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion; - // TODO: Uncomment this line and remove the line below when JellyBean - // SDK version is finalized. - // if (targetSdkVersion >= Build.VERSION_CODES.JELLY_BEAN) { - if (targetSdkVersion > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { - mIncludeNotImportantViews = - (info.flags & INCLUDE_NOT_IMPORTANT_VIEWS) != 0; + if (!mIsAutomation) { + final int targetSdkVersion = + info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion; + // TODO: Uncomment this line and remove the line below when JellyBean + // SDK version is finalized. + // if (targetSdkVersion >= Build.VERSION_CODES.JELLY_BEAN) { + if (targetSdkVersion > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { + mIncludeNotImportantViews = + (info.flags & INCLUDE_NOT_IMPORTANT_VIEWS) != 0; + } } synchronized (mLock) {