mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-24 15:21:02 +00:00
modify switch
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
0234da8eef
commit
7e2f5ff280
@ -60,6 +60,7 @@ bool FuzzPerUserSession(const uint8_t *rawData, size_t size)
|
||||
std::shared_ptr<PerUserSession> userSessions = std::make_shared<PerUserSession>(MAIN_USER_ID);
|
||||
sptr<IInputMethodCore> core = new InputMethodCoreProxy(object);
|
||||
sptr<IInputMethodAgent> agent = new InputMethodAgentProxy(object);
|
||||
ImeCache cache = { .core = core, .agent = agent };
|
||||
InputMethodInfo *ime = new InputMethodInfo();
|
||||
|
||||
userSessions->OnShowKeyboardSelf();
|
||||
@ -70,7 +71,7 @@ bool FuzzPerUserSession(const uint8_t *rawData, size_t size)
|
||||
userSessions->OnStartInput(client, isShowKeyboard);
|
||||
userSessions->OnStopInput(client);
|
||||
userSessions->OnReleaseInput(client);
|
||||
userSessions->OnSetCoreAndAgent(core, agent);
|
||||
userSessions->OnSetCoreAndAgent(std::make_shared<ImeCache>(cache));
|
||||
|
||||
delete ime;
|
||||
ime = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user