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

Commit f4efd58c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Dispatch organized task info change after committing visibility" into...

Merge "Dispatch organized task info change after committing visibility" into sc-v2-dev am: b24386ba am: 5e2a6ccb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15770643

Change-Id: I8f451ae960bb47289ff255beb5af882ad3286b21
parents 47b62db6 5e2a6ccb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4897,7 +4897,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
        // dispatchTaskInfoChangedIfNeeded() right after ActivityRecord#setVisibility() can report
        // the stale visible state, because the state will be updated after the app transition.
        // So tries to report the actual visible state again where the state is changed.
        if (task != null) task.dispatchTaskInfoChangedIfNeeded(false /* force */);
        if (!mTaskSupervisor.inActivityVisibilityUpdate()) {
            final Task task = getOrganizedTask();
            if (task != null) {
                task.dispatchTaskInfoChangedIfNeeded(false /* force */);
            }
        }
        ProtoLog.v(WM_DEBUG_APP_TRANSITIONS,
                "commitVisibility: %s: visible=%b mVisibleRequested=%b", this,
                isVisible(), mVisibleRequested);