mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-18 12:18:08 +00:00
fix bugs
Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
parent
2468103723
commit
d7dd524847
@ -31,6 +31,8 @@ namespace MiscServices {
|
||||
bool isSystemIme;
|
||||
int32_t mDefaultImeId;
|
||||
std::vector<KeyboardType*> mTypes;
|
||||
std::u16string moduleName;
|
||||
std::u16string description;
|
||||
|
||||
InputMethodProperty();
|
||||
~InputMethodProperty();
|
||||
|
@ -45,6 +45,8 @@ namespace MiscServices {
|
||||
mConfigurationPage = property.mConfigurationPage;
|
||||
isSystemIme = property.isSystemIme;
|
||||
mDefaultImeId = property.mDefaultImeId;
|
||||
moduleName = property.moduleName;
|
||||
description = property.description;
|
||||
|
||||
for (int i = 0; i < (int)mTypes.size(); i++) {
|
||||
KeyboardType *type = new KeyboardType(*property.mTypes[i]);
|
||||
@ -67,6 +69,8 @@ namespace MiscServices {
|
||||
mConfigurationPage = property.mConfigurationPage;
|
||||
isSystemIme = property.isSystemIme;
|
||||
mDefaultImeId = property.mDefaultImeId;
|
||||
moduleName = property.moduleName;
|
||||
description = property.description;
|
||||
|
||||
for (int i = 0; i < (int)mTypes.size(); i++) {
|
||||
KeyboardType *type = new KeyboardType(*property.mTypes[i]);
|
||||
@ -87,7 +91,9 @@ namespace MiscServices {
|
||||
&& parcel.WriteString16(mAbilityName)
|
||||
&& parcel.WriteString16(mConfigurationPage)
|
||||
&& parcel.WriteBool(isSystemIme)
|
||||
&& parcel.WriteInt32(mDefaultImeId)))
|
||||
&& parcel.WriteInt32(mDefaultImeId)
|
||||
&& parcel.WriteString16(moduleName)
|
||||
&& parcel.WriteString16(description)))
|
||||
return false;
|
||||
int32_t size = (int32_t)mTypes.size();
|
||||
parcel.WriteInt32(size);
|
||||
@ -114,6 +120,8 @@ namespace MiscServices {
|
||||
info->mConfigurationPage = parcel.ReadString16();
|
||||
info->isSystemIme = parcel.ReadBool();
|
||||
info->mDefaultImeId = parcel.ReadInt32();
|
||||
info->moduleName = parcel.ReadString16();
|
||||
info->description = parcel.ReadString16();
|
||||
|
||||
int32_t size = parcel.ReadInt32();
|
||||
if (size == 0)
|
||||
|
@ -373,6 +373,8 @@ namespace MiscServices {
|
||||
InputMethodProperty *property = new InputMethodProperty();
|
||||
property->mPackageName = Str8ToStr16(extension.bundleName);
|
||||
property->mAbilityName = Str8ToStr16(extension.name);
|
||||
property->moduleName = Str8ToStr16(extension.moduleName);
|
||||
property->description = Str8ToStr16(extension.description);
|
||||
properties->push_back(property);
|
||||
}
|
||||
return ErrorCode::NO_ERROR;
|
||||
@ -539,7 +541,6 @@ namespace MiscServices {
|
||||
|
||||
userSettings.insert(std::pair<int32_t, PerUserSetting*>(userId, setting));
|
||||
userSessions.insert(std::pair<int32_t, PerUserSession*>(userId, session));
|
||||
IMSA_HILOGI("End...[%d]\n", userId);
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user