mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 17:01:21 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
a61318e989
commit
3db7f5dff4
@ -69,7 +69,7 @@ void EnableImeDataParser::OnUserChanged(const int32_t targetUserId)
|
||||
currrentUserId_ = targetUserId;
|
||||
if (GetEnableData(ENABLE_IME, enableList_[std::string(ENABLE_IME)], targetUserId) != ErrorCode::NO_ERROR
|
||||
|| GetEnableData(ENABLE_KEYBOARD, enableList_[std::string(ENABLE_KEYBOARD)], targetUserId)
|
||||
!= ErrorCode::NO_ERROR) {
|
||||
!= ErrorCode::NO_ERROR) {
|
||||
IMSA_HILOGE("get enable list failed.");
|
||||
return;
|
||||
}
|
||||
|
@ -715,6 +715,10 @@ int32_t ImeInfoInquirer::GetDefaultInputMethod(const int32_t userId, std::shared
|
||||
std::shared_ptr<ImeInfo> ImeInfoInquirer::GetDefaultImeInfo(int32_t userId)
|
||||
{
|
||||
auto defaultIme = GetDefaultImeCfgProp();
|
||||
if (defaultIme == nullptr) {
|
||||
IMSA_HILOGE("defaultIme is nullptr.");
|
||||
return nullptr;
|
||||
}
|
||||
auto info = GetImeInfoFromBundleMgr(userId, defaultIme->name, "");
|
||||
if (info == nullptr) {
|
||||
IMSA_HILOGE("userId: %{public}d, bundleName: %{public}s getImeInfoFromBundleMgr failed", userId,
|
||||
|
Loading…
Reference in New Issue
Block a user