mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 00:41:04 +00:00
!1501 增加WINDOW_TYPE_FLOAT类型窗口创建权限
Merge pull request !1501 from mashaoyin/master
This commit is contained in:
commit
5424b697c2
@ -394,7 +394,8 @@ void TddUtil::InitCurrentImePermissionInfo()
|
||||
void TddUtil::WindowManager::CreateWindow()
|
||||
{
|
||||
if (windowTokenId_ == 0) {
|
||||
windowTokenId_ = AllocTestTokenID(true, "TestWindow", {});
|
||||
windowTokenId_ = AllocTestTokenID(true, "TestWindow",
|
||||
{ "ohos.permission.SYSTEM_FLOAT_WINDOW" });
|
||||
}
|
||||
TokenScope scope(windowTokenId_);
|
||||
std::string windowName = "inputmethod_test_window";
|
||||
|
Loading…
Reference in New Issue
Block a user