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

Commit d8c8c632 authored by Phil Weaver's avatar Phil Weaver Committed by android-build-merger
Browse files

Make sure setting switch bar state is announced.

am: 664f6dac

Change-Id: I8ecc83b5affa7af17071971abee57320d1fe2333
parents 2651bdcf 664f6dac
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -341,6 +341,14 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
        return Switch.class.getName();
    }

    @Override
    public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) {
        // Since the children are marked as not important for accessibility, re-dispatch all
        // of their events as if they came from this view
        event.setSource(this);
        return true;
    }

    /** @hide */
    @Override
    public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) {