提交 e3dfb694 编写于 作者: C cy7717

mod

Signed-off-by: Ncy7717 <chenyu301@huawei.com>
上级 3c703ca4
......@@ -103,10 +103,9 @@
public onDestroy(): void // 应用生命周期销毁
{
this.unRegisterListener(); // 注销事件监听
this.unRegisterListener(); // 注销事件监听
let win = windowManager.findWindow(this.windowName);
win.destroyWindow(); // 销毁窗口
this.mContext.destroy(); // 销毁InputMethodExtensionAbility服务
}
private initWindow(): void // 初始化窗口
......@@ -156,7 +155,7 @@
})
globalThis.inputAbility.on('inputStop', (imeId) => {
if (imeId == "包名/Ability名") {
this.onDestroy();
this.mContext.destroy(); // 销毁InputMethodExtensionAbility服务
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册