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:
chyyy0213 2022-10-08 14:33:00 +08:00
parent dbbb6d3b18
commit d342a3de49
3 changed files with 3 additions and 2 deletions

View File

@ -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
{

View File

@ -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,

View File

@ -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(),