Make sure setting switch bar state is announced.

am: 664f6dacca

Change-Id: I8ecc83b5affa7af17071971abee57320d1fe2333
This commit is contained in:
Phil Weaver
2016-08-31 21:34:53 +00:00
committed by android-build-merger

View File

@@ -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) {