Make sure setting switch bar state is announced. am: 664f6dacca

am: d8c8c632d4

Change-Id: I8eceb0ed685ec5101132027f547c0b577c8c459c
This commit is contained in:
Phil Weaver
2016-08-31 21:38:26 +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) {