diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java index 2c5dbce716..dff7a5e2d8 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java @@ -320,8 +320,12 @@ public class FlutterView extends SurfaceView implements BinaryMessenger, Texture * * Sets it on top of its window. The background color still needs to be * controlled from within the Flutter UI itself. + * + * @deprecated This breaks accessibility highlighting. See https://github.com/flutter/flutter/issues/37025. */ + @Deprecated public void enableTransparentBackground() { + Log.w(TAG, "Warning: FlutterView is set on top of the window. Accessibility highlights will not be visible in the Flutter UI. https://github.com/flutter/flutter/issues/37025"); setZOrderOnTop(true); getHolder().setFormat(PixelFormat.TRANSPARENT); }