Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo
2022-06-02 09:52:25 +08:00
parent 4c4a7be473
commit 7ff1253da6
+4 -4
View File
@@ -128,8 +128,8 @@ namespace MiscServices {
*/
int PerUserSetting::OnPackageRemoved(std::u16string& packageName, bool *isSecurityIme)
{
if (isSecurityIme) {
isSecurityIme = false;
if (*isSecurityIme) {
*isSecurityIme = false;
}
std::u16string imeId = GetImeId(packageName);
if (!imeId.size()) {
@@ -151,8 +151,8 @@ namespace MiscServices {
}
}
if (securityFlag) {
if (isSecurityIme) {
isSecurityIme = true;
if (*isSecurityIme) {
*isSecurityIme = true;
}
return ErrorCode::NO_ERROR;
}