mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
@@ -276,7 +276,6 @@ namespace MiscServices {
|
||||
eventTarget->Off(type);
|
||||
}
|
||||
|
||||
delete type;
|
||||
type = nullptr;
|
||||
napi_value result = nullptr;
|
||||
napi_get_undefined(env, &result);
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace MiscServices {
|
||||
std::u16string key = InputMethodSetting::ENABLED_INPUT_METHODS_TAG;
|
||||
imSetting.SetValue(key, inputMethodSetting.GetValue(key));
|
||||
|
||||
int flag = imSetting.RemoveEnabledInputMethod(imeId);
|
||||
bool flag = imSetting.RemoveEnabledInputMethod(imeId);
|
||||
if (flag == false) {
|
||||
IMSA_HILOGI("The package removed is not an enabled IME. [%d]\n", userId_);
|
||||
return ErrorCode::NO_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user