Skip to content

Commit

Permalink
Add tooltip method to Android AccessibilityBridge (flutter#5103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Apr 26, 2018
1 parent 2ee36e2 commit e11905c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,11 @@ public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
case "announce":
mOwner.announceForAccessibility((String) data.get("message"));
break;
case "tooltip": {
AccessibilityEvent e = obtainAccessibilityEvent(ROOT_NODE_ID, AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
e.getText().add((String) data.get("message"));
mOwner.getParent().requestSendAccessibilityEvent(mOwner, e);
}
default:
assert false;
}
Expand Down

0 comments on commit e11905c

Please sign in to comment.