Ensure assistiveTechnologyEnabled is initialized when the android view is set up (flutter/engine#5793)

This commit is contained in:
Jonah Williams 2018-07-18 15:32:38 -07:00 committed by GitHub
parent c649bff5af
commit 9f7eec7f7a

View File

@ -745,6 +745,9 @@ public class FlutterView
if (mAccessibilityEnabled || mTouchExplorationEnabled) {
ensureAccessibilityEnabled();
}
if (mTouchExplorationEnabled) {
nativeSetAssistiveTechnologyEnabled(mNativeView.get(), true);
}
resetWillNotDraw();
mAccessibilityManager.addAccessibilityStateChangeListener(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {