Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f399af3e authored by Maxim Bogatov's avatar Maxim Bogatov
Browse files

fix CTS: AccessibilityEndToEndTest failing

ViewGroup overrides class name population to
AccessibilityEvent. So className is always ViewGroup
for any ViewGroup inherited classes

b/21369265

Change-Id: I46095c21e523e05066c7f6ee395171d4725983ac
parent ab051ef8
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2939,11 +2939,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        }
    }

    /** @hide */
    @Override
    public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) {
        super.onInitializeAccessibilityEventInternal(event);
        event.setClassName(ViewGroup.class.getName());
    public CharSequence getAccessibilityClassName() {
        return ViewGroup.class.getName();
    }

    @Override