From ac16d71bbf0c434b101d0b5e90c833395d456b89 Mon Sep 17 00:00:00 2001 From: c00524366 Date: Wed, 29 Sep 2021 18:44:30 +0800 Subject: [PATCH] refresh Signed-off-by: c00524366 --- .../inputmethod_controller/src/input_method_controller.cpp | 4 ++-- unitest/src/input_method_controller_test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/inputmethod_controller/src/input_method_controller.cpp b/frameworks/inputmethod_controller/src/input_method_controller.cpp index 4dcf263..913b3af 100644 --- a/frameworks/inputmethod_controller/src/input_method_controller.cpp +++ b/frameworks/inputmethod_controller/src/input_method_controller.cpp @@ -158,8 +158,8 @@ using namespace MessageID; void InputMethodController::Attach(sptr &listener) { - PrepareInput(0,mClient,mInputDataChannel,mAttribute); - textListener=listener; + PrepareInput(0, mClient,mInputDataChannel,mAttribute); + textListener = listener; } void InputMethodController::ShowTextInput() diff --git a/unitest/src/input_method_controller_test.cpp b/unitest/src/input_method_controller_test.cpp index dc95211..4a41ce7 100644 --- a/unitest/src/input_method_controller_test.cpp +++ b/unitest/src/input_method_controller_test.cpp @@ -198,12 +198,12 @@ namespace MiscServices { sptr textListener = new TextListener(); IMSA_HILOGI("IMC Attach START"); - imc->Attach(); + imc->Attach(textListener); int waitForStatusOk = 2; sleep(waitForStatusOk); IMSA_HILOGI("IMC ShowTextInput START"); - imc->ShowTextInput(textListener); + imc->ShowTextInput(); sleep(10); IMSA_HILOGI("IMC HideTextInput START");