Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-03-02 14:10:25 +08:00
parent f303321616
commit c32d88f4ce
+2 -1
View File
@@ -186,7 +186,8 @@ namespace MiscServices {
StartUserIdListener();
}
void InputMethodSystemAbility::StartUserIdListener() {
void InputMethodSystemAbility::StartUserIdListener()
{
sptr<ImCommonEventManager> imCommonEventManager = ImCommonEventManager::GetInstance();
bool isSuccess = imCommonEventManager->SubscribeEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED);
if (isSuccess) {