[fuchsia] Stop unimplemented TextInput from log spamming. (flutter/engine#33811)
This commit is contained in:
@@ -661,6 +661,16 @@ bool PlatformView::HandleFlutterTextInputChannelPlatformMessage(
|
|||||||
current_text_input_client_ = 0;
|
current_text_input_client_ = 0;
|
||||||
last_text_state_ = nullptr;
|
last_text_state_ = nullptr;
|
||||||
DeactivateIme();
|
DeactivateIme();
|
||||||
|
} else if (method->value == "TextInput.setCaretRect" ||
|
||||||
|
method->value == "TextInput.setEditableSizeAndTransform" ||
|
||||||
|
method->value == "TextInput.setMarkedTextRect" ||
|
||||||
|
method->value == "TextInput.setStyle") {
|
||||||
|
// We don't have these methods implemented and they get
|
||||||
|
// sent a lot during text input, so we create an empty case for them
|
||||||
|
// here to avoid "Unknown flutter/textinput method TextInput.*"
|
||||||
|
// log spam.
|
||||||
|
//
|
||||||
|
// TODO(fxb/101619): We should implement these.
|
||||||
} else {
|
} else {
|
||||||
FML_LOG(ERROR) << "Unknown " << message->channel() << " method "
|
FML_LOG(ERROR) << "Unknown " << message->channel() << " method "
|
||||||
<< method->value.GetString();
|
<< method->value.GetString();
|
||||||
|
|||||||
Reference in New Issue
Block a user