Make sure setting switch bar state is announced. am: 664f6dacca
am: d8c8c632d4
am: 06c04d91c7
Change-Id: I623bd0cf15f7a1ef73393e63fd739749834910c5
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user