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

Commit 5d35d3d2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Log CompatibilityBridge.onAccessibilityEvent()

Altough these are super spammy, they're super valuable when debugging why
compat mode doesn't work.

Bug: 112417431
Fixes: 112584717

Test: adb logcat AutofillManager

Change-Id: I1574b51b1c6caf783038b82ff207986b726b2e8b
parent deee3950
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2307,7 +2307,14 @@ public final class AutofillManager {
        @Override
        public AccessibilityEvent onAccessibilityEvent(AccessibilityEvent event,
                boolean accessibilityEnabled, int relevantEventTypes) {
            switch (event.getEventType()) {
            final int type = event.getEventType();
            if (sVerbose) {
                // NOTE: this is waaay spammy, but that's life.
                Log.v(TAG, "onAccessibilityEvent(" + AccessibilityEvent.eventTypeToString(type)
                        + "): "
                        + AccessibilityNodeInfo.getVirtualDescendantId(event.getSourceNodeId()));
            }
            switch (type) {
                case AccessibilityEvent.TYPE_VIEW_FOCUSED: {
                    synchronized (mLock) {
                        if (mFocusedWindowId == event.getWindowId()