mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-30 18:31:01 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
ab25118245
commit
84af969a2e
@ -142,9 +142,7 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
|
||||
}
|
||||
|
||||
public async releaseContext(): Promise<void> {
|
||||
if (this.mContext && this.extensionWin) {
|
||||
await this.extensionWin.destroyWindow();
|
||||
await this.mContext.terminateSelf();
|
||||
}
|
||||
await this.extensionWin?.destroyWindow();
|
||||
await this.mContext?.terminateSelf();
|
||||
}
|
||||
};
|
@ -91,7 +91,7 @@ struct Index {
|
||||
message: 'switch success', duration: 200
|
||||
});
|
||||
setTimeout(() => {
|
||||
context.terminateSelf();
|
||||
context?.terminateSelf();
|
||||
}, EXIT_TIME);
|
||||
}).catch((err: BusinessError) => {
|
||||
if (!err) {
|
||||
|
Loading…
Reference in New Issue
Block a user