[scenarios] dont do a weird invalidate on TextView. (flutter/engine#51866)

I am now investigating why this is needed.
This commit is contained in:
Jonah Williams
2024-04-03 10:18:10 -07:00
committed by GitHub
parent ebcdfef929
commit 483338a49e

View File

@@ -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