[scenarios] dont do a weird invalidate on TextView. (flutter/engine#51866)
I am now investigating why this is needed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user