Skip to content

Commit 31725b3

Browse files
committed
Fixing a regression I have introduced.
bug:6344558 Change-Id: Ie726e091942e337962baa052953002be724068b1
1 parent 3cb889c commit 31725b3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

services/java/com/android/server/accessibility/AccessibilityManagerService.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,14 +1004,16 @@ public void setDynamicallyConfigurableProperties(AccessibilityServiceInfo info)
10041004
mNotificationTimeout = info.notificationTimeout;
10051005
mIsDefault = (info.flags & DEFAULT) != 0;
10061006

1007-
final int targetSdkVersion =
1008-
info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion;
1009-
// TODO: Uncomment this line and remove the line below when JellyBean
1010-
// SDK version is finalized.
1011-
// if (targetSdkVersion >= Build.VERSION_CODES.JELLY_BEAN) {
1012-
if (targetSdkVersion > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
1013-
mIncludeNotImportantViews =
1014-
(info.flags & INCLUDE_NOT_IMPORTANT_VIEWS) != 0;
1007+
if (!mIsAutomation) {
1008+
final int targetSdkVersion =
1009+
info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion;
1010+
// TODO: Uncomment this line and remove the line below when JellyBean
1011+
// SDK version is finalized.
1012+
// if (targetSdkVersion >= Build.VERSION_CODES.JELLY_BEAN) {
1013+
if (targetSdkVersion > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
1014+
mIncludeNotImportantViews =
1015+
(info.flags & INCLUDE_NOT_IMPORTANT_VIEWS) != 0;
1016+
}
10151017
}
10161018

10171019
synchronized (mLock) {

0 commit comments

Comments
 (0)