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

Commit be98cdc7 authored by Alan Viverette's avatar Alan Viverette
Browse files

Send VIEW_SELECTED event when View selection state changes

BUG: 11354667
Change-Id: I55d69e0e156c7bd83c14025f313a9d7261b7ccda
parent 2f82e48a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -16617,10 +16617,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            invalidate(true);
            refreshDrawableState();
            dispatchSetSelected(selected);
            if (selected) {
                sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);
            } else {
                notifyViewAccessibilityStateChangedIfNeeded(
                        AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED);
            }
        }
    }
    /**
     * Dispatch setSelected to all of this View's children.