修改选择输入法弹窗的窗口类型。

Signed-off-by: Hollokin <taoyuxin2@huawei.com>
This commit is contained in:
Hollokin 2023-01-06 14:12:01 +08:00
parent 98c69b6f64
commit 780c122372
2 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
height: 300,
}
this.getInputMethods().then(() => {
this.createWindow("inputmethod Dialog:" + startId, window.WindowType.TYPE_DIALOG, dialogRect)
this.createWindow("inputmethod Dialog:" + startId, window.WindowType.TYPE_FLOAT, dialogRect)
})
}).catch((err) => {
console.log(TAG + "getDefaultDisplay err: " + JSON.stringify(err));

View File

@ -27,6 +27,9 @@
"requestPermissions": [
{
"name": "ohos.permission.CONNECT_IME_ABILITY"
},
{
"name": "ohos.permission.SYSTEM_FLOAT_WINDOW"
}
]
}