fix, incorrect check, default false means inactive

This commit is contained in:
uazo 2021-11-10 08:59:49 +01:00 committed by GitHub
parent db99181fef
commit 1f1bf6ba40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ diff --git a/content/public/android/java/src/org/chromium/content/browser/access
return;
}
+ // Do not collect accessibility tree if disabled
+ if (ContextUtils.getAppSharedPreferences().getBoolean("enable_accessibility", false)) {
+ if (!ContextUtils.getAppSharedPreferences().getBoolean("enable_accessibility", false)) {
+ structure.setChildCount(0);
+ return;
+ }