Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac54d3cc authored by wanghuadong's avatar wanghuadong
Browse files

Remove StartingWindow or cancel the request to add StartingWindow after all...


Remove StartingWindow or cancel the request to add StartingWindow after all activities have been drawn

In Embedded mode, all activities have already been drawn before the addition of StartingWindow is completed, then there is no suitable time to remove StartingWindow. So when all activities have been drawn but StartingWindow has not been successfully added, we need to cancel the request to add StartingWindow

Bug: 373802899

Change-Id: I4e98947ad305a3434ee22b12612b76f0e0578e96
Signed-off-by: default avatarwanghuadong <wanghuadong@xiaomi.corp-partner.google.com>
parent ec7676d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6960,7 +6960,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        } else if (associatedTask.getActivity(
                r -> r.isVisibleRequested() && !r.firstWindowDrawn) == null) {
            // The last drawn activity may not be the one that owns the starting window.
            final ActivityRecord r = associatedTask.topActivityContainsStartingWindow();
            final ActivityRecord r = associatedTask.getActivity(ar -> ar.mStartingData != null);
            if (r != null) {
                r.removeStartingWindow();
            }