mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-18 17:24:37 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -287,7 +287,7 @@ namespace MiscServices {
|
||||
return code;
|
||||
}
|
||||
|
||||
int32_t InputMethodCoreProxy::getKeyboardWindowHeight(int32_t retHeight)
|
||||
int32_t InputMethodCoreProxy::getKeyboardWindowHeight(int32_t &retHeight)
|
||||
{
|
||||
IMSA_HILOGI("InputMethodCoreProxy::getKeyboardWindowHeight");
|
||||
auto remote = Remote();
|
||||
|
||||
@@ -208,7 +208,7 @@ namespace MiscServices {
|
||||
std::map<int32_t, MessageHandler*>::const_iterator it = msgHandlers.find(MAIN_USER_ID);
|
||||
if (it == msgHandlers.end()) {
|
||||
IMSA_HILOGE("InputMethodSystemAbility::StartInputService() need start handler");
|
||||
MessageHandler *handler = new MessageHandler();
|
||||
sptr<MessageHandler> handler = new MessageHandler();
|
||||
if (session) {
|
||||
IMSA_HILOGE("InputMethodSystemAbility::OnPrepareInput session is not nullptr");
|
||||
session->CreateWorkThread(*handler);
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace MiscServices {
|
||||
{
|
||||
IMSA_HILOGI("PerUserSession::ResetIme");
|
||||
std::unique_lock<std::mutex> lock(mtx);
|
||||
InputMethodProperty *ime[] = {defaultIme, securityIme};
|
||||
InputMethodProperty *ime[2] = {defaultIme, securityIme};
|
||||
for (int i = 0; i < MIN_IME; i++) {
|
||||
if (currentIme[i] == ime[i] && ime[i]) {
|
||||
continue;
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace MiscServices {
|
||||
* ErrorCode::ERROR_NOT_IME_PACKAGE The installed package is not an IME package.
|
||||
* ErrorCode::ERROR_IME_PACKAGE_DUPLICATED The installed package is duplicated.
|
||||
*/
|
||||
int PerUserSetting::OnPackageAdded(std::u16string& packageName, bool isSecurityIme)
|
||||
int PerUserSetting::OnPackageAdded(std::u16string& packageName, bool &isSecurityIme)
|
||||
{
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = false;
|
||||
@@ -126,7 +126,7 @@ namespace MiscServices {
|
||||
* and is removed from the input method management system
|
||||
* ErrorCode::ERROR_NOT_IME_PACKAGE The removed package is not an IME package.
|
||||
*/
|
||||
int PerUserSetting::OnPackageRemoved(std::u16string& packageName, bool isSecurityIme)
|
||||
int PerUserSetting::OnPackageRemoved(std::u16string& packageName, bool &isSecurityIme)
|
||||
{
|
||||
if (isSecurityIme) {
|
||||
isSecurityIme = false;
|
||||
|
||||
Reference in New Issue
Block a user