Revert "Clear the surface to transparent black when creating a PlatformViewWr…" This reverts commit 6b37b170998e1a6cf1191443827ca1d5f1c6d8cf.
diff --git a/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java b/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java index 7defa9e..f1e91a9 100644 --- a/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java +++ b/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java
@@ -61,16 +61,6 @@ @NonNull Context context, @NonNull PlatformViewRenderTarget renderTarget) { this(context); this.renderTarget = renderTarget; - - Surface surface = renderTarget.getSurface(); - if (surface != null) { - final Canvas canvas = surface.lockHardwareCanvas(); - try { - canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); - } finally { - surface.unlockCanvasAndPost(canvas); - } - } } /**