!835 修复锁屏之上输入法和应用的层级bug

Merge pull request !835 from qianlf/master
This commit is contained in:
openharmony_ci
2022-05-12 06:12:17 +00:00
committed by Gitee
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -58,10 +58,11 @@ private:
{ WindowType::WINDOW_TYPE_VOLUME_OVERLAY, 112 },
{ WindowType::WINDOW_TYPE_NAVIGATION_BAR, 113 },
{ WindowType::WINDOW_TYPE_KEYGUARD, 114 },
{ WindowType::WINDOW_TYPE_DRAGGING_EFFECT, 115 },
{ WindowType::WINDOW_TYPE_POINTER, 116 },
{ WindowType::WINDOW_TYPE_BOOT_ANIMATION, 117 },
{ WindowType::WINDOW_TYPE_FREEZE_DISPLAY, 118 },
// reserve 115 for app window above keyguard, 116 for input method window above keyguard
{ WindowType::WINDOW_TYPE_DRAGGING_EFFECT, 117 },
{ WindowType::WINDOW_TYPE_POINTER, 118 },
{ WindowType::WINDOW_TYPE_BOOT_ANIMATION, 119 },
{ WindowType::WINDOW_TYPE_FREEZE_DISPLAY, 120 },
};
};
}
+2 -1
View File
@@ -1368,7 +1368,8 @@ void WindowNodeContainer::RaiseInputMethodWindowPriorityIfNeeded(const sptr<Wind
});
if (iter != aboveAppWindowNode_->children_.end()) {
WLOGFI("raise input method float window priority.");
node->priority_ = zorderPolicy_->GetWindowPriority(WindowType::WINDOW_TYPE_KEYGUARD) + 1;
node->priority_ = zorderPolicy_->GetWindowPriority(
WindowType::WINDOW_TYPE_KEYGUARD) + 2; // 2: higher than keyguard and show when locked window
}
}