diff --git a/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java b/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java index 93806dea10..407e49796b 100644 --- a/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java +++ b/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformViewFactory.java @@ -6,7 +6,6 @@ package dev.flutter.scenarios; import android.content.Context; import android.graphics.Color; -import android.view.Choreographer; import android.view.View; import android.widget.TextView; import androidx.annotation.NonNull; @@ -55,17 +54,6 @@ public final class TextPlatformViewFactory extends PlatformViewFactory { textView.setTextSize(72); textView.setBackgroundColor(Color.WHITE); textView.setText(params); - - // Investigate why this is needed to pass some gold tests. - Choreographer.getInstance() - .postFrameCallbackDelayed( - new Choreographer.FrameCallback() { - @Override - public void doFrame(long frameTimeNanos) { - textView.invalidate(); - } - }, - 500); } @Override