diff --git a/services/src/input_method_system_ability.cpp b/services/src/input_method_system_ability.cpp index c7d71e517040d4264e8f7ed98979e875050097c2..9a2655543a7b243345fa69d7ff53f514ce34071a 100644 --- a/services/src/input_method_system_ability.cpp +++ b/services/src/input_method_system_ability.cpp @@ -198,13 +198,13 @@ namespace MiscServices { } bool isStartSuccess = false; - sptr ams = GetAbilityManagerService(); - if (ams != nullptr) { + sptr abms = GetAbilityManagerService(); + if (abms != nullptr) { AAFwk::Want want; want.SetAction("action.system.inputmethod"); std::string::size_type pos = imeId.find("/"); want.SetElementName(imeId.substr(0, pos), imeId.substr(pos + 1)); - int32_t result = ams->StartAbility(want); + int32_t result = abms->StartAbility(want); if (result != 0) { IMSA_HILOGE("PerUserSession::StartInputService fail. result = %{public}d", result); isStartSuccess = false;