Make sure setting switch bar state is announced. am: 664f6dacca
am: d8c8c632d4
Change-Id: I8eceb0ed685ec5101132027f547c0b577c8c459c
This commit is contained in:
@@ -341,6 +341,14 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
|
|||||||
return Switch.class.getName();
|
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 */
|
/** @hide */
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) {
|
public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) {
|
||||||
|
Reference in New Issue
Block a user