add litho accessibility rendering to Flipper accessibility mode [2/2]
Summary: Completes D9667222 to allow force rendering of accessibility in litho when an accessibility service is not actually running. Reviewed By: ikenwoo Differential Revision: D9720987 fbshipit-source-id: 000a7413fcbe775a525ca3aca64443c3669cdf9e
This commit is contained in:
committed by
Facebook Github Bot
parent
a2c4c98feb
commit
21c0b3ad0e
@@ -545,14 +545,13 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
||||
}
|
||||
|
||||
initAX() {
|
||||
// TODO: uncomment once Litho open source updates
|
||||
// this.client
|
||||
// .call('shouldShowLithoAccessibilitySettings')
|
||||
// .then((showLithoAccessibilitySettings: boolean) => {
|
||||
// this.setState({
|
||||
// showLithoAccessibilitySettings,
|
||||
// });
|
||||
// });
|
||||
this.client
|
||||
.call('shouldShowLithoAccessibilitySettings')
|
||||
.then((showLithoAccessibilitySettings: boolean) => {
|
||||
this.setState({
|
||||
showLithoAccessibilitySettings,
|
||||
});
|
||||
});
|
||||
|
||||
performance.mark('InitAXRoot');
|
||||
this.client.call('getAXRoot').then((element: Element) => {
|
||||
|
||||
Reference in New Issue
Block a user