mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] Stop unimplemented TextInput from log spamming. (flutter/engine#33811)
This commit is contained in:
parent
659fcb777a
commit
581afe50aa
@ -661,6 +661,16 @@ bool PlatformView::HandleFlutterTextInputChannelPlatformMessage(
|
||||
current_text_input_client_ = 0;
|
||||
last_text_state_ = nullptr;
|
||||
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 {
|
||||
FML_LOG(ERROR) << "Unknown " << message->channel() << " method "
|
||||
<< method->value.GetString();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user