Back out "[DO NOT LAND until Litho open source version includes rerenderForAccessibility] add litho accessibility rendering to Flipper accessibility mode [2/2]"
Summary: Original commit changeset: 000a7413fcbe Reviewed By: passy Differential Revision: D12821473 fbshipit-source-id: 5fa369cc48f074414b04e4786d5bd634158598a6
This commit is contained in:
committed by
Facebook Github Bot
parent
c938931b4f
commit
2ee2dfacfe
@@ -75,7 +75,8 @@ public final class GenerateLithoAccessibilityRenderExtensionCommand
|
||||
while (!lithoViewSearchStack.isEmpty()) {
|
||||
ViewGroup v = lithoViewSearchStack.pop();
|
||||
if (v instanceof LithoView) {
|
||||
((LithoView) v).rerenderForAccessibility(forceLithoAXRender);
|
||||
// TODO: uncomment once Litho open source updates
|
||||
// ((LithoView) v).rerenderForAccessibility(forceLithoAXRender);
|
||||
} else {
|
||||
for (int i = 0; i < v.getChildCount(); i++) {
|
||||
View child = v.getChildAt(i);
|
||||
|
||||
@@ -545,13 +545,14 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
||||
}
|
||||
|
||||
initAX() {
|
||||
this.client
|
||||
.call('shouldShowLithoAccessibilitySettings')
|
||||
.then((showLithoAccessibilitySettings: boolean) => {
|
||||
this.setState({
|
||||
showLithoAccessibilitySettings,
|
||||
});
|
||||
});
|
||||
// TODO: uncomment once Litho open source updates
|
||||
// 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