mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
bugfix for minimizeByOtherWindow
Signed-off-by: chyyy0213 <chenhaiying3@huawei.com> Change-Id: I4965221702ef5baffaeb01cb4a4478c665bd6217 Signed-off-by: chyyy0213 <chenhaiying3@huawei.com>
This commit is contained in:
parent
dbbb6d3b18
commit
d342a3de49
@ -35,6 +35,7 @@ struct AbilityTransitionInfo : public Parcelable {
|
||||
uint32_t minWindowWidth_;
|
||||
uint32_t maxWindowHeight_;
|
||||
uint32_t minWindowHeight_;
|
||||
int32_t missionId_ = -1;
|
||||
|
||||
virtual bool Marshalling(Parcel& parcel) const override
|
||||
{
|
||||
|
@ -26,6 +26,7 @@ WindowTransitionInfo::WindowTransitionInfo(sptr<AAFwk::AbilityTransitionInfo> in
|
||||
displayId_ = info->displayId_;
|
||||
isShowWhenLocked_ = info->isShowWhenLocked_;
|
||||
isRecent_ = info->isRecent_;
|
||||
missionId_ = info->missionId_;
|
||||
if (info->windowModes_.empty()) {
|
||||
supportWindowModes_ = {
|
||||
AppExecFwk::SupportWindowMode::FULLSCREEN,
|
||||
|
@ -708,8 +708,7 @@ sptr<RSWindowAnimationFinishedCallback> RemoteAnimation::CreateShowAnimationFini
|
||||
}
|
||||
ProcessNodeStateTask(dstNodeSptr);
|
||||
// launcher not do this
|
||||
if (srcNodeSptr!= nullptr && WindowHelper::IsMainWindow(srcNodeSptr->GetWindowType()) &&
|
||||
WindowHelper::IsFullScreenWindow(srcNodeSptr->GetWindowMode())) {
|
||||
if (MinimizeApp::IsNodeNeedMinimizeWithReason(srcNodeSptr, MinimizeReason::OTHER_WINDOW)) {
|
||||
ProcessNodeStateTask(srcNodeSptr);
|
||||
}
|
||||
WLOGFI("current window:%{public}u state: %{public}u", dstNodeSptr->GetWindowId(),
|
||||
|
Loading…
Reference in New Issue
Block a user