New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[a11y] avoid TYPE_WINDOW_STATE_CHANGED to announce tooltips #86577
Comments
I wonder if this new-ish a11y API could also be helpful? |
Related: #86575 |
(Might also be worthwhile to check weather native tooltips still get announced at all on the latest Android/TalkBack version) |
I got some more information on this:
|
Thanks @goderbauer.
do you happen to know if this is a new behavior or is this also true prior to S? |
I searched a bit. It appears that this is a workaround that offered backward compatibility below < 26. Since tooltips were introduced in 26. 28 added |
The tooltip pop up is no longer announced in latest android, do we still need to use setTooltipText? It is also not clear to me when we should setToolTip for the accessibility node info, we can't attach the tooltip to the a11ynodeinfo unless the system ask for the specific node. |
Ok so the tooltip will get appended to the end of focus announcement when the node receive the a11y focus in native android app. Seems like we should do the same |
tooltip repro import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Testing nested talkback app',
theme: ThemeData(
primaryColor: Colors.white,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Testing'),
),
body: Tooltip(message: 'my tool tip', child: Text('text'),),
);
}
}
|
The last pr is abandoned due to I am busy with other high prioirty issue |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
See https://github.com/flutter/engine/blob/eaf70ca01903d25f2cd7aad2f0f9ce754e1e0e62/shell/platform/android/io/flutter/view/AccessibilityBridge.java#L268-L273.
As of Android 11 newer versions of TalkBack may not announce the message provided to the TYPE_WINDOW_STATE_CHANGED event. The alternative way for announcing tooltips is TBD. We may have to look at the Android source to see how the a11y for the native tooltip works or reverse-engineer the right way from TalkBack's debug logs when activating a native tooltip.
The text was updated successfully, but these errors were encountered: