File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
services/java/com/android/server/accessibility Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments